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.001474/0.001474, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 196.3 kB / 16.53 MB, free: 6.672 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.359/1.359, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7769/0.7769, allocations: 132.2 MB / 422.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 60.25 kB / 0.5018 GB, free: 3.867 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.416/0.4173, allocations: 80.2 MB / 0.5801 GB, free: 4.789 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.09075/0.5081, allocations: 80.55 MB / 0.6587 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.03486/0.543, allocations: 19.23 MB / 0.6775 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005143/0.5482, allocations: 103.4 kB / 0.6776 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004658/0.553, allocations: 1.157 MB / 0.6787 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.009748/0.5627, allocations: 2.77 MB / 0.6814 GB, free: 9.562 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.006684/0.5694, allocations: 2.389 MB / 0.6838 GB, free: 7.195 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01854/0.588, allocations: 15.49 MB / 0.6989 GB, free: 7.664 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01423/0.6023, allocations: 7.217 MB / 0.706 GB, free: 352 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01414/0.6165, allocations: 5.853 MB / 0.7117 GB, free: 10.51 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01011/0.6266, allocations: 5.058 MB / 0.7166 GB, free: 5.434 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002726/0.6294, allocations: 0.5352 MB / 0.7171 GB, free: 4.898 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007723/0.6371, allocations: 1.791 MB / 0.7189 GB, free: 3.105 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.003435/0.6406, allocations: 1.616 MB / 0.7205 GB, free: 1.484 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.007331/0.648, allocations: 3.29 MB / 0.7237 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01388/0.6619, allocations: 8.966 MB / 0.7324 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.662, allocations: 4 kB / 0.7324 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.234e-06/0.662, allocations: 0 / 0.7324 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0003115/0.6623, allocations: 0 / 0.7324 GB, free: 5.184 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.01707/0.6794, allocations: 6.478 MB / 0.7388 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.6794, allocations: 8.031 kB / 0.7388 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004874/0.6843, allocations: 0.8246 MB / 0.7396 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01199/0.6963, allocations: 5.09 MB / 0.7445 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004098/0.6968, allocations: 255.1 kB / 0.7448 GB, free: 8.348 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001684/0.6985, allocations: 340 kB / 0.7451 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01508/0.7136, allocations: 5.703 MB / 0.7507 GB, free: 2.066 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001456/0.7138, allocations: 15.86 kB / 0.7507 GB, free: 2.051 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001208/0.715, allocations: 147.9 kB / 0.7508 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001362/0.7152, allocations: 118 kB / 0.751 GB, free: 1.789 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01161/0.7268, allocations: 5.519 MB / 0.7563 GB, free: 12.26 MB / 0.5919 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.04352/0.7704, allocations: 23.8 MB / 0.7796 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005644/0.776, allocations: 2.746 MB / 0.7823 GB, free: 0.6406 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003142/0.7792, allocations: 1.886 MB / 0.7841 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0134/0.7927, allocations: 7.085 MB / 0.791 GB, free: 7.352 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003318/0.796, allocations: 1.921 MB / 0.7929 GB, free: 5.414 MB / 0.6231 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003523/0.7996, allocations: 0.7041 MB / 0.7936 GB, free: 4.707 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=155): time 1.182e-05/0.7996, allocations: 0 / 0.7936 GB, free: 4.707 MB / 0.6231 GB Notification: Performance of matching and sorting (n=155): time 0.0265/0.8261, allocations: 7.932 MB / 0.8013 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.175e-05/0.8262, allocations: 68.72 kB / 0.8014 GB, free: 12.61 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01035/0.8365, allocations: 5.003 MB / 0.8063 GB, free: 7.625 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.001198/0.8378, allocations: 69.69 kB / 0.8064 GB, free: 7.551 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.003744/0.8416, allocations: 2.459 MB / 0.8088 GB, free: 5.066 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001406/0.843, allocations: 0.5471 MB / 0.8093 GB, free: 4.512 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002159/0.8452, allocations: 0.6607 MB / 0.8099 GB, free: 3.844 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.8453, allocations: 313.1 kB / 0.8102 GB, free: 3.535 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003321/0.8486, allocations: 1.722 MB / 0.8119 GB, free: 1.805 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2928/1.142, allocations: 2.906 MB / 0.8148 GB, free: 205.7 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007486/1.149, allocations: 4.671 MB / 0.8193 GB, free: 203.9 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.852e-05/1.149, allocations: 10.06 kB / 0.8193 GB, free: 203.9 MB / 0.6387 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01377/1.163, allocations: 6.298 MB / 0.8255 GB, free: 201.9 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 7.007e-05/1.163, allocations: 46.61 kB / 0.8255 GB, free: 201.9 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.075e-05/1.163, allocations: 35.72 kB / 0.8256 GB, free: 201.9 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08068/1.244, allocations: 13.54 MB / 0.8388 GB, free: 198.9 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002711/1.246, allocations: 0.6454 MB / 0.8394 GB, free: 198.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008695/1.255, allocations: 5.495 MB / 0.8448 GB, free: 195.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005041/1.26, allocations: 214 kB / 0.845 GB, free: 195 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006624/1.261, allocations: 194.8 kB / 0.8452 GB, free: 194.9 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004786/1.266, allocations: 2.961 MB / 0.8481 GB, free: 193.3 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002949/1.269, allocations: 2.841 MB / 0.8508 GB, free: 190.9 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005076/1.274, allocations: 4.552 MB / 0.8553 GB, free: 186.5 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.559e-05/1.274, allocations: 8 kB / 0.8553 GB, free: 186.5 MB / 0.6387 GB Notification: Performance of matching and sorting (n=336) (initialization_lambda0): time 0.009464/1.283, allocations: 5.992 MB / 0.8611 GB, free: 180.7 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 5.872e-05/1.283, allocations: 49.7 kB / 0.8612 GB, free: 180.6 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.229e-05/1.284, allocations: 36.12 kB / 0.8612 GB, free: 180.6 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07284/1.356, allocations: 13.3 MB / 0.8742 GB, free: 167.3 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002637/1.359, allocations: 0.6435 MB / 0.8748 GB, free: 166.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/1.37, allocations: 8.92 MB / 0.8835 GB, free: 157.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004183/1.374, allocations: 216.3 kB / 0.8838 GB, free: 157.3 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005099/1.375, allocations: 195.8 kB / 0.8839 GB, free: 157.1 MB / 0.6387 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.0008689/1.376, allocations: 359.6 kB / 0.8843 GB, free: 156.8 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001303/1.377, allocations: 474.8 kB / 0.8847 GB, free: 156.4 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007101/1.384, allocations: 4.567 MB / 0.8892 GB, free: 151.8 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.788e-05/1.384, allocations: 23.94 kB / 0.8892 GB, free: 151.8 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/1.384, allocations: 0 / 0.8892 GB, free: 151.8 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008863/1.393, allocations: 5.634 MB / 0.8947 GB, free: 145.9 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02483/1.418, allocations: 10.71 MB / 0.9052 GB, free: 135.2 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-05/1.418, allocations: 4 kB / 0.9052 GB, free: 135.2 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002161/1.42, allocations: 363.6 kB / 0.9055 GB, free: 134.9 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06673/1.487, allocations: 11.7 MB / 0.917 GB, free: 123.2 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004899/1.487, allocations: 51.95 kB / 0.917 GB, free: 123.2 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005161/1.492, allocations: 3.572 MB / 0.9205 GB, free: 119.5 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/1.492, allocations: 4 kB / 0.9205 GB, free: 119.5 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02116/1.514, allocations: 8.395 MB / 0.9287 GB, free: 111.1 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002417/1.516, allocations: 0.92 MB / 0.9296 GB, free: 110.2 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008882/1.517, allocations: 39.92 kB / 0.9296 GB, free: 110.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002713/1.52, allocations: 142.8 kB / 0.9298 GB, free: 110 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002991/1.52, allocations: 109.9 kB / 0.9299 GB, free: 109.9 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001987/1.52, allocations: 91.86 kB / 0.93 GB, free: 109.8 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.004088/1.524, allocations: 3.436 MB / 0.9333 GB, free: 106.4 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.2e-07/1.524, allocations: 0 / 0.9333 GB, free: 106.4 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.007409/1.532, allocations: 2.629 MB / 0.9359 GB, free: 103.9 MB / 0.6387 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.001328/1.533, allocations: 0.5332 MB / 0.9364 GB, free: 103.4 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01819/1.551, allocations: 8.415 MB / 0.9446 GB, free: 95 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.551, allocations: 4 kB / 0.9446 GB, free: 94.99 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.005253/1.557, allocations: 2.285 MB / 0.9469 GB, free: 92.71 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01123/1.568, allocations: 2.728 MB / 0.9495 GB, free: 90.14 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01295/1.581, allocations: 10.09 MB / 0.9594 GB, free: 80.04 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001926/1.583, allocations: 3.233 MB / 0.9625 GB, free: 76.78 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.005126/1.588, allocations: 1.654 MB / 0.9642 GB, free: 75.14 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/1.589, allocations: 351.2 kB / 0.9645 GB, free: 74.8 MB / 0.6387 GB Notification: Performance of SimCode: time 1.042e-06/1.589, allocations: 4 kB / 0.9645 GB, free: 74.79 MB / 0.6387 GB Notification: Performance of Templates: time 0.4458/2.035, allocations: 114.8 MB / 1.077 GB, free: 226.1 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 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)