Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json 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/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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00688/0.00688, allocations: 100.2 kB / 15.87 MB, free: 5.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 195.1 kB / 16.79 MB, free: 5.816 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9201/0.9201, allocations: 135.1 MB / 425.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 64.66 kB / 0.5053 GB, free: 5.758 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.159, allocations: 80.92 MB / 0.5843 GB, free: 5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.3462/0.5053, allocations: 79.99 MB / 0.6624 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02815/0.5335, allocations: 19.34 MB / 0.6813 GB, free: 5.832 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00438/0.5379, allocations: 97.47 kB / 0.6814 GB, free: 5.793 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004244/0.5423, allocations: 0.9714 MB / 0.6824 GB, free: 5.273 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.009151/0.5514, allocations: 2.592 MB / 0.6849 GB, free: 3.785 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.006595/0.5581, allocations: 2.161 MB / 0.687 GB, free: 2.574 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.02441/0.5825, allocations: 20.75 MB / 0.7073 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009803/0.5923, allocations: 6.139 MB / 0.7133 GB, free: 7.508 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01124/0.6036, allocations: 4.825 MB / 0.718 GB, free: 4.531 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01005/0.6137, allocations: 5.019 MB / 0.7229 GB, free: 15.49 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002008/0.6158, allocations: 323.9 kB / 0.7232 GB, free: 15.17 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006723/0.6225, allocations: 1.556 MB / 0.7247 GB, free: 13.61 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.003051/0.6256, allocations: 1.358 MB / 0.7261 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.006916/0.6325, allocations: 2.997 MB / 0.729 GB, free: 9.238 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.009/0.6416, allocations: 6.989 MB / 0.7358 GB, free: 2.234 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.6416, allocations: 4 kB / 0.7358 GB, free: 2.23 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.593e-06/0.6416, allocations: 0 / 0.7358 GB, free: 2.23 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0002638/0.6419, allocations: 0 / 0.7358 GB, free: 2.23 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 0.0157/0.6576, allocations: 6.484 MB / 0.7421 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.6577, allocations: 8.031 kB / 0.7421 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004521/0.6622, allocations: 0.825 MB / 0.743 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01144/0.6737, allocations: 5.262 MB / 0.7481 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002619/0.674, allocations: 259 kB / 0.7483 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001344/0.6754, allocations: 355.9 kB / 0.7487 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/0.6871, allocations: 5.693 MB / 0.7542 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.753e-05/0.6872, allocations: 11.88 kB / 0.7542 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006342/0.6878, allocations: 144 kB / 0.7544 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000104/0.688, allocations: 118 kB / 0.7545 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01096/0.6989, allocations: 5.53 MB / 0.7599 GB, free: 9.125 MB / 0.5762 GB 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.03712/0.7361, allocations: 23.76 MB / 0.7831 GB, free: 244 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005118/0.7413, allocations: 2.738 MB / 0.7858 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003084/0.7444, allocations: 1.897 MB / 0.7876 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01394/0.7584, allocations: 7.042 MB / 0.7945 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003478/0.7619, allocations: 1.925 MB / 0.7964 GB, free: 2.305 MB / 0.6075 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004906/0.7668, allocations: 1.188 MB / 0.7975 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=156): time 1.503e-05/0.7669, allocations: 0 / 0.7975 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of matching and sorting (n=156): time 0.02217/0.7891, allocations: 7.359 MB / 0.8047 GB, free: 9.684 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.598e-05/0.7892, allocations: 72.66 kB / 0.8048 GB, free: 9.598 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008372/0.7975, allocations: 4.894 MB / 0.8096 GB, free: 4.719 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0006186/0.7982, allocations: 69.7 kB / 0.8097 GB, free: 4.645 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.002595/0.8008, allocations: 2.455 MB / 0.812 GB, free: 2.164 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.001127/0.802, allocations: 0.5547 MB / 0.8126 GB, free: 1.602 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/0.803, allocations: 0.6022 MB / 0.8132 GB, free: 0.9922 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.8032, allocations: 301.1 kB / 0.8135 GB, free: 0.6953 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002862/0.806, allocations: 1.675 MB / 0.8151 GB, free: 15.01 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003818/0.8099, allocations: 2.867 MB / 0.8179 GB, free: 11.59 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007368/0.8173, allocations: 4.57 MB / 0.8224 GB, free: 6.559 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.178e-05/0.8173, allocations: 8 kB / 0.8224 GB, free: 6.551 MB / 0.6387 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01297/0.8303, allocations: 6.067 MB / 0.8283 GB, free: 464 kB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 9.532e-05/0.8305, allocations: 45.69 kB / 0.8283 GB, free: 412 kB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.796e-05/0.8305, allocations: 36 kB / 0.8284 GB, free: 376 kB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0728/0.9033, allocations: 12.03 MB / 0.8401 GB, free: 4.316 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003005/0.9064, allocations: 0.6435 MB / 0.8408 GB, free: 3.672 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00828/0.9147, allocations: 5.034 MB / 0.8457 GB, free: 14.56 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005066/0.9198, allocations: 323.9 kB / 0.846 GB, free: 14.25 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005933/0.9204, allocations: 167.9 kB / 0.8461 GB, free: 14.08 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004977/0.9254, allocations: 2.917 MB / 0.849 GB, free: 11.16 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003486/0.9289, allocations: 2.8 MB / 0.8517 GB, free: 7.805 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006345/0.9353, allocations: 4.429 MB / 0.856 GB, free: 2.906 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.484e-05/0.9353, allocations: 12 kB / 0.8561 GB, free: 2.895 MB / 0.67 GB Notification: Performance of matching and sorting (n=336) (initialization_lambda0): time 0.2896/1.225, allocations: 5.742 MB / 0.8617 GB, free: 206.2 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 5.418e-05/1.225, allocations: 54.62 kB / 0.8617 GB, free: 206.1 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.333e-05/1.225, allocations: 32.09 kB / 0.8617 GB, free: 206.1 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06768/1.293, allocations: 11.8 MB / 0.8733 GB, free: 205.6 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002767/1.296, allocations: 0.6485 MB / 0.8739 GB, free: 205.6 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00985/1.305, allocations: 8.017 MB / 0.8817 GB, free: 201.3 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004599/1.31, allocations: 338.3 kB / 0.8821 GB, free: 201.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005711/1.311, allocations: 159.5 kB / 0.8822 GB, free: 201.2 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 280 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(11,13), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0008158/1.311, allocations: 365.1 kB / 0.8826 GB, free: 201 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001292/1.313, allocations: 471.5 kB / 0.883 GB, free: 201 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008722/1.322, allocations: 4.825 MB / 0.8877 GB, free: 199.3 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-05/1.322, allocations: 16.28 kB / 0.8877 GB, free: 199.3 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/1.322, allocations: 0 / 0.8877 GB, free: 199.3 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02001/1.342, allocations: 6.867 MB / 0.8944 GB, free: 196.2 MB / 0.67 GB 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 postOpt removeSimpleEquations (simulation): time 0.0341/1.376, allocations: 12.96 MB / 0.9071 GB, free: 191.2 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.289e-05/1.376, allocations: 1.25 kB / 0.9071 GB, free: 191.2 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002397/1.378, allocations: 356.5 kB / 0.9074 GB, free: 191.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06774/1.446, allocations: 12.04 MB / 0.9192 GB, free: 188.7 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005506/1.447, allocations: 43.72 kB / 0.9192 GB, free: 188.7 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005672/1.452, allocations: 4.327 MB / 0.9235 GB, free: 185.7 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.452, allocations: 3.938 kB / 0.9235 GB, free: 185.7 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02289/1.475, allocations: 9.504 MB / 0.9327 GB, free: 180.5 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003019/1.478, allocations: 0.9997 MB / 0.9337 GB, free: 179.9 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001273/1.48, allocations: 33.94 kB / 0.9338 GB, free: 179.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003508/1.483, allocations: 260.4 kB / 0.934 GB, free: 179.7 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00038/1.484, allocations: 107.1 kB / 0.9341 GB, free: 179.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002653/1.484, allocations: 79.19 kB / 0.9342 GB, free: 179.6 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.005105/1.489, allocations: 3.352 MB / 0.9374 GB, free: 176.4 MB / 0.67 GB Notification: Performance of sort global known variables: time 7.51e-07/1.489, allocations: 0 / 0.9374 GB, free: 176.4 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00889/1.498, allocations: 2.653 MB / 0.94 GB, free: 173.9 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.s[1],val.filter.s[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(10,3), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001483/1.499, allocations: 0.5244 MB / 0.9406 GB, free: 173.4 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01462/1.514, allocations: 7.441 MB / 0.9478 GB, free: 165.9 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/1.514, allocations: 5.875 kB / 0.9478 GB, free: 165.9 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.005121/1.519, allocations: 2.468 MB / 0.9502 GB, free: 163.5 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01315/1.532, allocations: 2.719 MB / 0.9529 GB, free: 160.8 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0159/1.548, allocations: 11.88 MB / 0.9645 GB, free: 148.9 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002182/1.551, allocations: 3.213 MB / 0.9676 GB, free: 145.7 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001609/1.552, allocations: 367.2 kB / 0.968 GB, free: 145.3 MB / 0.67 GB Notification: Performance of SimCode: time 6.82e-07/1.552, allocations: 0 / 0.968 GB, free: 145.3 MB / 0.67 GB Notification: Performance of Templates: time 0.4168/1.969, allocations: 163.3 MB / 1.127 GB, free: 193.6 MB / 0.67 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)