Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001124/0.001124, allocations: 106.6 kB / 16.35 MB, free: 5.824 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.001079/0.001079, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7863/0.7863, allocations: 132.2 MB / 423.3 MB, free: 6.59 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.89 kB / 0.5032 GB, free: 10.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3714, allocations: 80.18 MB / 0.5815 GB, free: 27.65 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.06689/0.4383, allocations: 80.55 MB / 0.6601 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02751/0.4658, allocations: 19.22 MB / 0.6789 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003723/0.4696, allocations: 107.4 kB / 0.679 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003629/0.4732, allocations: 1.151 MB / 0.6801 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.007623/0.481, allocations: 2.771 MB / 0.6828 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005502/0.4865, allocations: 2.427 MB / 0.6852 GB, free: 3.75 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01528/0.5018, allocations: 15.49 MB / 0.7003 GB, free: 4.219 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009042/0.5108, allocations: 7.229 MB / 0.7074 GB, free: 12.89 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.012/0.5229, allocations: 5.857 MB / 0.7131 GB, free: 7.051 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008563/0.5314, allocations: 5.05 MB / 0.718 GB, free: 1.98 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001995/0.5335, allocations: 0.5391 MB / 0.7186 GB, free: 1.441 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006307/0.5398, allocations: 1.799 MB / 0.7203 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002652/0.5425, allocations: 1.612 MB / 0.7219 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00645/0.5489, allocations: 3.301 MB / 0.7251 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01313/0.5621, allocations: 9.063 MB / 0.734 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.173e-05/0.5621, allocations: 0 / 0.734 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.934e-06/0.5621, allocations: 3.938 kB / 0.734 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0003194/0.5625, allocations: 0 / 0.734 GB, free: 1.613 MB / 0.5606 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.016/0.5785, allocations: 6.482 MB / 0.7403 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.5785, allocations: 8.031 kB / 0.7403 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004289/0.5828, allocations: 0.8246 MB / 0.7411 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01363/0.5965, allocations: 5.352 MB / 0.7463 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003202/0.5969, allocations: 254.5 kB / 0.7466 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001445/0.5983, allocations: 336 kB / 0.7469 GB, free: 4.188 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3501/0.9485, allocations: 5.703 MB / 0.7525 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001076/0.9486, allocations: 12.72 kB / 0.7525 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005794/0.9492, allocations: 146.6 kB / 0.7526 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002154/0.9494, allocations: 114.1 kB / 0.7527 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.9607, allocations: 5.524 MB / 0.7581 GB, free: 150.7 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.0332/0.9939, allocations: 23.66 MB / 0.7812 GB, free: 132.5 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004468/0.9984, allocations: 2.747 MB / 0.7839 GB, free: 131 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002618/1.001, allocations: 1.899 MB / 0.7858 GB, free: 130 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.013/1.014, allocations: 7.089 MB / 0.7927 GB, free: 123.3 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002758/1.017, allocations: 1.914 MB / 0.7946 GB, free: 121.4 MB / 0.5762 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003496/1.02, allocations: 0.7056 MB / 0.7953 GB, free: 120.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=155): time 1.269e-05/1.02, allocations: 0 / 0.7953 GB, free: 120.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=155): time 0.02299/1.043, allocations: 7.931 MB / 0.803 GB, free: 112.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/1.044, allocations: 68.72 kB / 0.8031 GB, free: 112.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008197/1.052, allocations: 5.015 MB / 0.808 GB, free: 107.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0007695/1.053, allocations: 61.7 kB / 0.808 GB, free: 107.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.002465/1.055, allocations: 2.457 MB / 0.8104 GB, free: 105.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001146/1.056, allocations: 0.5501 MB / 0.811 GB, free: 104.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001918/1.058, allocations: 0.6685 MB / 0.8116 GB, free: 104 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.488e-05/1.058, allocations: 301.1 kB / 0.8119 GB, free: 103.7 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002689/1.061, allocations: 1.714 MB / 0.8136 GB, free: 102 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003031/1.064, allocations: 2.91 MB / 0.8164 GB, free: 98.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00568/1.07, allocations: 4.676 MB / 0.821 GB, free: 93.52 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.658e-05/1.07, allocations: 12 kB / 0.821 GB, free: 93.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01098/1.081, allocations: 6.312 MB / 0.8272 GB, free: 87.17 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.804e-05/1.081, allocations: 47.89 kB / 0.8272 GB, free: 87.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.277e-05/1.081, allocations: 36 kB / 0.8272 GB, free: 87.09 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07168/1.152, allocations: 13.53 MB / 0.8405 GB, free: 73.59 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002767/1.155, allocations: 0.6628 MB / 0.8411 GB, free: 72.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008609/1.164, allocations: 5.48 MB / 0.8465 GB, free: 67.37 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004435/1.168, allocations: 216.4 kB / 0.8467 GB, free: 67.16 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006761/1.169, allocations: 191.8 kB / 0.8468 GB, free: 66.97 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004475/1.174, allocations: 2.96 MB / 0.8497 GB, free: 64 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00288/1.177, allocations: 2.847 MB / 0.8525 GB, free: 60.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00512/1.182, allocations: 4.551 MB / 0.857 GB, free: 55.59 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.368e-05/1.182, allocations: 12 kB / 0.857 GB, free: 55.57 MB / 0.5762 GB Notification: Performance of matching and sorting (n=336) (initialization_lambda0): time 0.009512/1.191, allocations: 5.981 MB / 0.8628 GB, free: 49.56 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.754e-05/1.191, allocations: 45.7 kB / 0.8629 GB, free: 49.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-05/1.191, allocations: 39.94 kB / 0.8629 GB, free: 49.47 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0687/1.26, allocations: 13.31 MB / 0.8759 GB, free: 36.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002683/1.263, allocations: 0.6396 MB / 0.8765 GB, free: 35.56 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/1.274, allocations: 8.906 MB / 0.8852 GB, free: 26.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005668/1.28, allocations: 213 kB / 0.8854 GB, free: 26.13 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009286/1.281, allocations: 191.8 kB / 0.8856 GB, free: 25.95 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * 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 (283): * Single equations (assignments): 278 * 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,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001677/1.283, allocations: 375.2 kB / 0.886 GB, free: 25.57 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00223/1.285, allocations: 462.3 kB / 0.8864 GB, free: 25.11 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008756/1.294, allocations: 4.579 MB / 0.8909 GB, free: 20.53 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-05/1.294, allocations: 20 kB / 0.8909 GB, free: 20.51 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/1.294, allocations: 0 / 0.8909 GB, free: 20.51 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0092/1.303, allocations: 5.617 MB / 0.8964 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02698/1.33, allocations: 10.72 MB / 0.9068 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-05/1.33, allocations: 0 / 0.9068 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002307/1.332, allocations: 367.6 kB / 0.9072 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06701/1.4, allocations: 11.71 MB / 0.9186 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005073/1.4, allocations: 51.95 kB / 0.9187 GB, free: 7.711 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006949/1.407, allocations: 3.544 MB / 0.9221 GB, free: 4.09 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.407, allocations: 0 / 0.9221 GB, free: 4.09 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02494/1.432, allocations: 8.426 MB / 0.9304 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00357/1.436, allocations: 0.9208 MB / 0.9313 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001711/1.437, allocations: 32 kB / 0.9313 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00385/1.441, allocations: 139.7 kB / 0.9314 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005217/1.442, allocations: 113.8 kB / 0.9315 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004226/1.442, allocations: 79.94 kB / 0.9316 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.007321/1.45, allocations: 3.444 MB / 0.935 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.31e-07/1.45, allocations: 0 / 0.935 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01048/1.46, allocations: 2.628 MB / 0.9375 GB, free: 4.293 MB / 0.6075 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 (135): * Single equations (assignments): 126 * 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 {(11,5), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001812/1.462, allocations: 0.5316 MB / 0.9381 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01956/1.482, allocations: 7.42 MB / 0.9453 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/1.482, allocations: 0 / 0.9453 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005999/1.488, allocations: 2.293 MB / 0.9475 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01362/1.501, allocations: 2.714 MB / 0.9502 GB, free: 7.492 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02016/1.521, allocations: 9.956 MB / 0.9599 GB, free: 13.51 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004107/1.526, allocations: 3.241 MB / 0.9631 GB, free: 10.24 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.005831/1.531, allocations: 1.658 MB / 0.9647 GB, free: 8.598 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001331/1.533, allocations: 347.2 kB / 0.965 GB, free: 8.262 MB / 0.6387 GB Notification: Performance of SimCode: time 7.41e-07/1.533, allocations: 4 kB / 0.965 GB, free: 8.258 MB / 0.6387 GB Notification: Performance of Templates: time 0.4263/1.959, allocations: 110.7 MB / 1.073 GB, free: 183.9 MB / 0.67 GB make -j1 -f IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)