Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7813/0.7813, allocations: 143.4 MB / 159.2 MB, free: 4.863 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001275/0.001274, allocations: 188.5 kB / 191.9 MB, free: 5.734 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 447.3 MB, free: 5.844 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 103.8 kB / 0.517 GB, free: 3.699 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00196/0.00196, allocations: 292.3 kB / 0.5973 GB, free: 49.35 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.001391, allocations: 87.86 kB / 0.6885 GB, free: 3.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3329, allocations: 81.28 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve): time 0.01399/0.3469, allocations: 20.66 MB / 0.7881 GB, free: 6.926 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.004914/0.3519, allocations: 4.991 MB / 0.793 GB, free: 1.922 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005762/0.3525, allocations: 15.88 kB / 0.793 GB, free: 1.906 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006696/0.3532, allocations: 226.6 kB / 0.7932 GB, free: 1.684 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001469/0.3547, allocations: 0.7475 MB / 0.7939 GB, free: 0.9336 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.3562, allocations: 0.6248 MB / 0.7945 GB, free: 324 kB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.001683/0.3579, allocations: 1.826 MB / 0.7963 GB, free: 14.49 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004998/0.3584, allocations: 378.5 kB / 0.7967 GB, free: 14.11 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008094/0.3592, allocations: 0.5368 MB / 0.7972 GB, free: 13.57 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005234/0.3597, allocations: 458 kB / 0.7976 GB, free: 13.12 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 5.995e-05/0.3598, allocations: 24 kB / 0.7977 GB, free: 13.1 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001196/0.361, allocations: 0.6003 MB / 0.7982 GB, free: 12.5 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.3611, allocations: 103.6 kB / 0.7983 GB, free: 12.4 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002959/0.3614, allocations: 270.5 kB / 0.7986 GB, free: 12.13 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.3626, allocations: 0.8294 MB / 0.7994 GB, free: 11.3 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3626, allocations: 0 / 0.7994 GB, free: 11.3 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3626, allocations: 0 / 0.7994 GB, free: 11.3 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.024e-06/0.3626, allocations: 0 / 0.7994 GB, free: 11.3 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001463/0.3641, allocations: 0.9264 MB / 0.8003 GB, free: 10.32 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.3641, allocations: 12.03 kB / 0.8003 GB, free: 10.31 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.3642, allocations: 68.19 kB / 0.8004 GB, free: 10.25 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005788/0.3648, allocations: 455.4 kB / 0.8008 GB, free: 9.762 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.3648, allocations: 24.66 kB / 0.8008 GB, free: 9.734 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.651e-05/0.3649, allocations: 32 kB / 0.8009 GB, free: 9.703 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005862/0.3655, allocations: 302 kB / 0.8012 GB, free: 9.402 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.3655, allocations: 4 kB / 0.8012 GB, free: 9.398 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.3656, allocations: 12 kB / 0.8012 GB, free: 9.387 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.3656, allocations: 11.94 kB / 0.8012 GB, free: 9.375 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006227/0.3662, allocations: 266.4 kB / 0.8014 GB, free: 9.117 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.3682, allocations: 1.333 MB / 0.8028 GB, free: 7.664 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.3687, allocations: 259.7 kB / 0.803 GB, free: 7.402 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002798/0.369, allocations: 132.8 kB / 0.8031 GB, free: 7.27 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004683/0.3695, allocations: 0.4986 MB / 0.8036 GB, free: 6.66 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.3695, allocations: 34.56 kB / 0.8036 GB, free: 6.617 MB / 474.7 MB Notification: Performance of pre-optimization done (n=25): time 1.873e-06/0.3696, allocations: 0 / 0.8036 GB, free: 6.617 MB / 474.7 MB Notification: Performance of matching and sorting (n=25): time 0.001678/0.3712, allocations: 0.5635 MB / 0.8042 GB, free: 6.027 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.3713, allocations: 59.41 kB / 0.8043 GB, free: 5.957 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004603/0.3718, allocations: 466.1 kB / 0.8047 GB, free: 5.492 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.09e-05/0.3718, allocations: 33.7 kB / 0.8047 GB, free: 5.453 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.372, allocations: 240.5 kB / 0.805 GB, free: 5.215 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.296e-05/0.372, allocations: 90.73 kB / 0.805 GB, free: 5.125 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.3722, allocations: 77.67 kB / 0.8051 GB, free: 5.043 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3723, allocations: 350.8 kB / 0.8055 GB, free: 4.691 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003001/0.3726, allocations: 120.8 kB / 0.8056 GB, free: 4.57 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003521/0.3729, allocations: 181 kB / 0.8057 GB, free: 4.375 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005924/0.3735, allocations: 276.4 kB / 0.806 GB, free: 4.098 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3736, allocations: 4 kB / 0.806 GB, free: 4.094 MB / 474.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001549/0.3751, allocations: 486.8 kB / 0.8065 GB, free: 3.609 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3751, allocations: 7.984 kB / 0.8065 GB, free: 3.602 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.3752, allocations: 0 / 0.8065 GB, free: 3.602 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003585/0.3755, allocations: 64.81 kB / 0.8065 GB, free: 3.535 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.3759, allocations: 59.95 kB / 0.8066 GB, free: 3.477 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004027/0.3763, allocations: 0.5679 MB / 0.8072 GB, free: 2.883 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/0.3767, allocations: 59.75 kB / 0.8072 GB, free: 2.824 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.119e-05/0.3768, allocations: 23.92 kB / 0.8072 GB, free: 2.801 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000403/0.3772, allocations: 244.1 kB / 0.8075 GB, free: 2.559 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003423/0.3776, allocations: 181.8 kB / 0.8076 GB, free: 2.363 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005741/0.3781, allocations: 264.4 kB / 0.8079 GB, free: 2.098 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.413e-06/0.3781, allocations: 0 / 0.8079 GB, free: 2.098 MB / 474.7 MB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0007558/0.3789, allocations: 370.4 kB / 0.8082 GB, free: 1.73 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/0.3789, allocations: 4 kB / 0.8082 GB, free: 1.727 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-06/0.3789, allocations: 0 / 0.8082 GB, free: 1.727 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.589e-06/0.3789, allocations: 8 kB / 0.8083 GB, free: 1.719 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003647/0.3793, allocations: 83.81 kB / 0.8083 GB, free: 1.637 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.3793, allocations: 4 kB / 0.8083 GB, free: 1.633 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004501/0.3798, allocations: 59.73 kB / 0.8084 GB, free: 1.574 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.3798, allocations: 15.98 kB / 0.8084 GB, free: 1.559 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001387/0.38, allocations: 196.2 kB / 0.8086 GB, free: 1.359 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-05/0.3801, allocations: 47.44 kB / 0.8086 GB, free: 1.312 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009699/0.381, allocations: 427 kB / 0.8091 GB, free: 0.8789 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.3811, allocations: 7.922 kB / 0.8091 GB, free: 0.8711 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3811, allocations: 11.94 kB / 0.8091 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3811, allocations: 0 / 0.8091 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/0.3826, allocations: 0.9413 MB / 0.81 GB, free: 15.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.3826, allocations: 4.031 kB / 0.81 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002198/0.3828, allocations: 51.89 kB / 0.81 GB, free: 15.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001785/0.383, allocations: 44.83 kB / 0.8101 GB, free: 15.75 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.383, allocations: 8 kB / 0.8101 GB, free: 15.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003294/0.3834, allocations: 0.5485 MB / 0.8106 GB, free: 15.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.3834, allocations: 15.97 kB / 0.8106 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.3848, allocations: 1.258 MB / 0.8119 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.385, allocations: 160.3 kB / 0.812 GB, free: 13.64 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.529e-05/0.385, allocations: 8 kB / 0.812 GB, free: 13.63 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00035/0.3854, allocations: 39.95 kB / 0.8121 GB, free: 13.59 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.757e-05/0.3855, allocations: 19.97 kB / 0.8121 GB, free: 13.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.3855, allocations: 8 kB / 0.8121 GB, free: 13.57 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003309/0.3858, allocations: 326.9 kB / 0.8124 GB, free: 13.25 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3859, allocations: 0 / 0.8124 GB, free: 13.25 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0009887/0.3868, allocations: 263.5 kB / 0.8127 GB, free: 12.99 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004821/0.3873, allocations: 249.9 kB / 0.8129 GB, free: 12.75 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001196/0.3885, allocations: 466 kB / 0.8133 GB, free: 12.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3886, allocations: 4 kB / 0.8133 GB, free: 12.29 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004116/0.389, allocations: 167.8 kB / 0.8135 GB, free: 12.13 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/0.3905, allocations: 255 kB / 0.8138 GB, free: 11.89 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.3922, allocations: 1.21 MB / 0.8149 GB, free: 10.62 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004852/0.3927, allocations: 0.8669 MB / 0.8158 GB, free: 9.73 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004508/0.3932, allocations: 116.8 kB / 0.8159 GB, free: 9.617 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.3933, allocations: 43.36 kB / 0.8159 GB, free: 9.574 MB / 490.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3933, allocations: 0 / 0.8159 GB, free: 9.574 MB / 490.7 MB Notification: Performance of Templates: time 0.01811/0.4114, allocations: 10.19 MB / 0.8259 GB, free: 15.54 MB / 0.4948 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1)