Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ThermoPower.Test.WaterComponents.TestJoinRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev") translateModel(ThermoPower.Test.WaterComponents.TestJoinRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001889/0.001889, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.002129/0.002129, allocations: 191 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3107/0.3107, allocations: 48.84 MB / 320.7 MB, free: 11.03 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 63.91 kB / 451.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1282, allocations: 59.18 MB / 0.4984 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.3973/0.5255, allocations: 105.2 MB / 0.6012 GB, free: 13.41 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01613/0.5417, allocations: 11.69 MB / 0.6126 GB, free: 3.91 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001435/0.5431, allocations: 22.12 kB / 0.6126 GB, free: 3.902 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002185/0.5453, allocations: 0.5432 MB / 0.6131 GB, free: 3.426 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002096/0.5475, allocations: 0.6338 MB / 0.6137 GB, free: 2.891 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01814/0.5657, allocations: 5.71 MB / 0.6193 GB, free: 14.22 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002963/0.5687, allocations: 1.829 MB / 0.6211 GB, free: 12.39 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001428/0.5701, allocations: 0.6649 MB / 0.6217 GB, free: 11.71 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001604/0.5717, allocations: 0.7085 MB / 0.6224 GB, free: 11 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001217/0.573, allocations: 0.6886 MB / 0.6231 GB, free: 10.31 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002688/0.5732, allocations: 80 kB / 0.6232 GB, free: 10.23 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01473/0.588, allocations: 6.443 MB / 0.6295 GB, free: 3.781 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004131/0.5884, allocations: 183.3 kB / 0.6297 GB, free: 3.602 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00106/0.5895, allocations: 485.8 kB / 0.6301 GB, free: 3.125 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.6014, allocations: 4.42 MB / 0.6344 GB, free: 14.7 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.6015, allocations: 0 / 0.6344 GB, free: 14.7 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.6015, allocations: 0 / 0.6344 GB, free: 14.7 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.549e-05/0.6015, allocations: 4 kB / 0.6344 GB, free: 14.69 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.00591/0.6075, allocations: 1.843 MB / 0.6362 GB, free: 12.77 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.6075, allocations: 15.89 kB / 0.6363 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004728/0.608, allocations: 123.8 kB / 0.6364 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.609, allocations: 0.5306 MB / 0.6369 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.356e-05/0.6091, allocations: 53.88 kB / 0.6369 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.6092, allocations: 67.94 kB / 0.637 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002363/0.6116, allocations: 0.938 MB / 0.6379 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/0.6116, allocations: 2.625 kB / 0.6379 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.428e-05/0.6117, allocations: 28 kB / 0.6379 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.336e-05/0.6117, allocations: 16 kB / 0.638 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002481/0.6142, allocations: 0.7933 MB / 0.6387 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004834/0.6191, allocations: 4.341 MB / 0.643 GB, free: 5.336 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002442/0.6215, allocations: 0.7468 MB / 0.6437 GB, free: 4.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008767/0.6224, allocations: 297.5 kB / 0.644 GB, free: 4.273 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0636/0.686, allocations: 32.11 MB / 0.6753 GB, free: 356 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001856/0.6879, allocations: 0.5276 MB / 0.6759 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=44): time 3.527e-06/0.688, allocations: 4 kB / 0.6759 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=44): time 0.003855/0.6918, allocations: 1.09 MB / 0.6769 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.6919, allocations: 85.09 kB / 0.677 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007185/0.6926, allocations: 0.5431 MB / 0.6775 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.565e-05/0.6927, allocations: 37.7 kB / 0.6776 GB, free: 14 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002785/0.693, allocations: 348.5 kB / 0.6779 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.6932, allocations: 138 kB / 0.678 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.6934, allocations: 94.11 kB / 0.6781 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001642/0.6935, allocations: 374.8 kB / 0.6785 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008984/0.6944, allocations: 274.5 kB / 0.6788 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009417/0.6954, allocations: 339.7 kB / 0.6791 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00175/0.6972, allocations: 0.6542 MB / 0.6797 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.6972, allocations: 0 / 0.6797 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002295/0.6995, allocations: 0.8463 MB / 0.6805 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.622e-05/0.6996, allocations: 118.8 kB / 0.6807 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.6996, allocations: 0 / 0.6807 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.6996, allocations: 4 kB / 0.6807 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006545/0.7003, allocations: 136 kB / 0.6808 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.812e-05/0.7003, allocations: 9.578 kB / 0.6808 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007345/0.701, allocations: 115.3 kB / 0.6809 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.184e-05/0.7011, allocations: 16 kB / 0.6809 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009821/0.7021, allocations: 384.9 kB / 0.6813 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008625/0.703, allocations: 339.2 kB / 0.6816 GB, free: 9.68 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001595/0.7046, allocations: 0.657 MB / 0.6823 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.237e-06/0.7046, allocations: 0 / 0.6823 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.001998/0.7066, allocations: 0.8164 MB / 0.6831 GB, free: 8.113 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.132e-05/0.7067, allocations: 126.7 kB / 0.6832 GB, free: 7.965 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.706e-06/0.7067, allocations: 0 / 0.6832 GB, free: 7.965 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.365e-06/0.7067, allocations: 8.5 kB / 0.6832 GB, free: 7.957 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005845/0.7073, allocations: 128.1 kB / 0.6833 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.7073, allocations: 7.938 kB / 0.6833 GB, free: 7.824 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006398/0.708, allocations: 91.59 kB / 0.6834 GB, free: 7.734 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.495e-05/0.708, allocations: 28.86 kB / 0.6834 GB, free: 7.707 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 26 (Sine2.count,$PRE.Sine2.count,Sine2.T_start,$PRE.Sine2.T_start,Sine1.count,$PRE.Sine1.count,Sine1.T_start,$PRE.Sine1.T_start,$whenCondition3,$whenCondition4,Sine4.count,$PRE.Sine4.count,Sine4.T_start,$PRE.Sine4.T_start,Sine3.count,$PRE.Sine3.count,Sine3.T_start,$PRE.Sine3.T_start,$whenCondition1,$whenCondition2,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002245/0.7083, allocations: 218.2 kB / 0.6836 GB, free: 7.488 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.7084, allocations: 71.16 kB / 0.6837 GB, free: 7.418 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00301/0.7114, allocations: 1.844 MB / 0.6855 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.89e-05/0.7115, allocations: 23.97 kB / 0.6855 GB, free: 5.539 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.485e-06/0.7115, allocations: 0 / 0.6855 GB, free: 5.539 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.7115, allocations: 15.86 kB / 0.6855 GB, free: 5.523 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002755/0.7143, allocations: 2.011 MB / 0.6875 GB, free: 3.445 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/0.7143, allocations: 2.562 kB / 0.6875 GB, free: 3.445 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005407/0.7148, allocations: 115.8 kB / 0.6876 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.353e-06/0.7149, allocations: 4.062 kB / 0.6876 GB, free: 3.328 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.81e-05/0.7149, allocations: 15.98 kB / 0.6876 GB, free: 3.312 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.132e-06/0.7149, allocations: 4 kB / 0.6876 GB, free: 3.309 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.7149, allocations: 3.938 kB / 0.6876 GB, free: 3.305 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002401/0.7173, allocations: 1.193 MB / 0.6888 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003131/0.7177, allocations: 223.5 kB / 0.689 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.7178, allocations: 11.98 kB / 0.689 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006323/0.7184, allocations: 71.91 kB / 0.6891 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002438/0.7187, allocations: 95.77 kB / 0.6892 GB, free: 1.664 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.089e-05/0.7187, allocations: 16 kB / 0.6892 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004507/0.7192, allocations: 379.1 kB / 0.6896 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.8e-07/0.7192, allocations: 4 kB / 0.6896 GB, free: 1.277 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003525/0.7227, allocations: 1.112 MB / 0.6907 GB, free: 168 kB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 24 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count) * Number of discrete states: 4 (Sine1.count,Sine2.count,Sine4.count,Sine3.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004857/0.7276, allocations: 0.9848 MB / 0.6916 GB, free: 15.17 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003612/0.7312, allocations: 1.547 MB / 0.6931 GB, free: 13.53 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.7312, allocations: 0.5625 kB / 0.6931 GB, free: 13.53 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.7326, allocations: 0.5671 MB / 0.6937 GB, free: 12.96 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/0.7346, allocations: 358.1 kB / 0.694 GB, free: 12.62 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/0.7378, allocations: 1.735 MB / 0.6957 GB, free: 10.83 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005882/0.7384, allocations: 1.007 MB / 0.6967 GB, free: 9.797 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002674/0.7387, allocations: 63.44 kB / 0.6968 GB, free: 9.734 MB / 0.545 GB Notification: Performance of SimCode: time 8.21e-07/0.7387, allocations: 0 / 0.6968 GB, free: 9.734 MB / 0.545 GB Notification: Performance of Templates: time 0.04418/0.7829, allocations: 25.25 MB / 0.7214 GB, free: 456 kB / 0.5606 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe 2>&1)