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.0006835/0.0006833, allocations: 91.73 kB / 17.31 MB, free: 6.535 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.0007372/0.0007373, allocations: 178.3 kB / 18.21 MB, free: 5.68 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.156/1.156, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2276/0.2276, allocations: 48.79 MB / 321.5 MB, free: 11.11 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.0004553/0.0004554, allocations: 13.31 kB / 392.5 MB, free: 50.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08018/0.08064, allocations: 60.26 MB / 452.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.2583/0.339, allocations: 104.6 MB / 0.5443 GB, free: 6.387 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01197/0.351, allocations: 12.38 MB / 0.5564 GB, free: 6.203 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004763/0.3515, allocations: 25.53 kB / 0.5564 GB, free: 6.203 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.3527, allocations: 473.9 kB / 0.5568 GB, free: 6.199 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009271/0.3537, allocations: 0.611 MB / 0.5574 GB, free: 6.191 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01195/0.3656, allocations: 4.67 MB / 0.562 GB, free: 6.012 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002467/0.3681, allocations: 2.666 MB / 0.5646 GB, free: 5.637 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006968/0.3688, allocations: 0.56 MB / 0.5652 GB, free: 5.555 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007651/0.3696, allocations: 0.6152 MB / 0.5658 GB, free: 5.492 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000667/0.3703, allocations: 0.6945 MB / 0.5664 GB, free: 5.453 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.3704, allocations: 49.19 kB / 0.5665 GB, free: 5.453 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009716/0.3801, allocations: 6.376 MB / 0.5727 GB, free: 5.246 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.3803, allocations: 151.2 kB / 0.5728 GB, free: 5.211 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003926/0.3807, allocations: 475.7 kB / 0.5733 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002736/0.3834, allocations: 2.981 MB / 0.5762 GB, free: 3.734 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.3834, allocations: 5.969 kB / 0.5762 GB, free: 3.734 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3834, allocations: 3.938 kB / 0.5762 GB, free: 3.73 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.3834, allocations: 0 / 0.5762 GB, free: 3.73 MB / 414.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.003432/0.3869, allocations: 1.742 MB / 0.5779 GB, free: 2.578 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.3869, allocations: 9.75 kB / 0.5779 GB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002844/0.3872, allocations: 117.7 kB / 0.578 GB, free: 2.527 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004712/0.3877, allocations: 0.5248 MB / 0.5786 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.241e-05/0.3877, allocations: 47.91 kB / 0.5786 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.202e-05/0.3878, allocations: 70.06 kB / 0.5787 GB, free: 2.148 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001818/0.3896, allocations: 0.9833 MB / 0.5796 GB, free: 1.777 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.3897, allocations: 3.938 kB / 0.5796 GB, free: 1.773 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.869e-05/0.3897, allocations: 34.47 kB / 0.5797 GB, free: 1.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.3898, allocations: 15.03 kB / 0.5797 GB, free: 1.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002218/0.392, allocations: 0.8794 MB / 0.5805 GB, free: 1.566 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003325/0.3953, allocations: 4.385 MB / 0.5848 GB, free: 13.8 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002261/0.3976, allocations: 0.8428 MB / 0.5856 GB, free: 13.57 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008718/0.3985, allocations: 353 kB / 0.586 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05663/0.4551, allocations: 32.28 MB / 0.6175 GB, free: 15.34 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001604/0.4568, allocations: 0.5754 MB / 0.6181 GB, free: 14.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=44): time 2.073e-06/0.4568, allocations: 0 / 0.6181 GB, free: 14.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.003694/0.4605, allocations: 1.231 MB / 0.6193 GB, free: 13.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.4605, allocations: 93.09 kB / 0.6194 GB, free: 13.69 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004843/0.461, allocations: 0.5433 MB / 0.6199 GB, free: 13.26 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.664e-05/0.4611, allocations: 40.2 kB / 0.6199 GB, free: 13.23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.4613, allocations: 340.9 kB / 0.6203 GB, free: 13 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.857e-05/0.4614, allocations: 138.4 kB / 0.6204 GB, free: 12.89 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.484e-05/0.4615, allocations: 49.81 kB / 0.6204 GB, free: 12.85 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.4616, allocations: 369.8 kB / 0.6208 GB, free: 12.51 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008901/0.4625, allocations: 320 kB / 0.6211 GB, free: 12.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000914/0.4634, allocations: 388.7 kB / 0.6215 GB, free: 11.91 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00176/0.4652, allocations: 0.7605 MB / 0.6222 GB, free: 11.23 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.4652, allocations: 0 / 0.6222 GB, free: 11.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002111/0.4673, allocations: 0.9366 MB / 0.6231 GB, free: 10.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001234/0.4674, allocations: 265.1 kB / 0.6234 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.4674, allocations: 0 / 0.6234 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.4675, allocations: 7.938 kB / 0.6234 GB, free: 10.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006441/0.4681, allocations: 155.2 kB / 0.6235 GB, free: 9.957 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.4681, allocations: 4 kB / 0.6235 GB, free: 9.953 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000796/0.4689, allocations: 170.5 kB / 0.6237 GB, free: 9.793 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-05/0.469, allocations: 27.86 kB / 0.6237 GB, free: 9.77 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.62e-06/0.469, allocations: 8 kB / 0.6237 GB, free: 9.762 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001917/0.4709, allocations: 0.8453 MB / 0.6246 GB, free: 9.039 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.4709, allocations: 4 kB / 0.6246 GB, free: 9.035 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.986e-06/0.471, allocations: 4 kB / 0.6246 GB, free: 9.031 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005437/0.4715, allocations: 151.5 kB / 0.6247 GB, free: 8.891 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.4715, allocations: 11.97 kB / 0.6247 GB, free: 8.879 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006773/0.4722, allocations: 166.3 kB / 0.6249 GB, free: 8.723 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.45e-05/0.4722, allocations: 20.92 kB / 0.6249 GB, free: 8.707 MB / 462.1 MB 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.0002551/0.4725, allocations: 275.4 kB / 0.6252 GB, free: 8.469 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.387e-05/0.4726, allocations: 75.09 kB / 0.6252 GB, free: 8.395 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002819/0.4754, allocations: 1.942 MB / 0.6271 GB, free: 7.016 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.4755, allocations: 23.97 kB / 0.6272 GB, free: 6.992 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4755, allocations: 0 / 0.6272 GB, free: 6.992 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.4755, allocations: 7.922 kB / 0.6272 GB, free: 6.984 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/0.478, allocations: 2.061 MB / 0.6292 GB, free: 4.875 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.478, allocations: 3.984 kB / 0.6292 GB, free: 4.871 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005494/0.4786, allocations: 137.1 kB / 0.6293 GB, free: 4.738 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.4786, allocations: 4 kB / 0.6293 GB, free: 4.734 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.4786, allocations: 15.98 kB / 0.6293 GB, free: 4.719 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.4786, allocations: 3.938 kB / 0.6293 GB, free: 4.715 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4786, allocations: 4 kB / 0.6293 GB, free: 4.711 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002295/0.4809, allocations: 1.3 MB / 0.6306 GB, free: 3.383 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/0.4811, allocations: 223.5 kB / 0.6308 GB, free: 3.145 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.7e-05/0.4812, allocations: 11.98 kB / 0.6308 GB, free: 3.133 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000719/0.482, allocations: 148.5 kB / 0.631 GB, free: 2.988 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/0.4821, allocations: 83.89 kB / 0.631 GB, free: 2.906 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/0.4822, allocations: 16 kB / 0.6311 GB, free: 2.891 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003596/0.4826, allocations: 379.1 kB / 0.6314 GB, free: 2.527 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4826, allocations: 0 / 0.6314 GB, free: 2.527 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002518/0.4851, allocations: 1.112 MB / 0.6325 GB, free: 1.414 MB / 462.1 MB 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.002836/0.4879, allocations: 1.002 MB / 0.6335 GB, free: 492 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003215/0.4911, allocations: 1.688 MB / 0.6351 GB, free: 14.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4912, allocations: 4 kB / 0.6351 GB, free: 14.69 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.4924, allocations: 0.617 MB / 0.6357 GB, free: 14.08 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/0.4942, allocations: 340.5 kB / 0.6361 GB, free: 13.75 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.4967, allocations: 2.166 MB / 0.6382 GB, free: 11.54 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004624/0.4972, allocations: 1.007 MB / 0.6392 GB, free: 10.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.4974, allocations: 51.44 kB / 0.6392 GB, free: 10.45 MB / 478.1 MB Notification: Performance of SimCode: time 3e-07/0.4974, allocations: 0 / 0.6392 GB, free: 10.45 MB / 478.1 MB Notification: Performance of Templates: time 0.02871/0.5261, allocations: 25.01 MB / 0.6636 GB, free: 1.434 MB / 494.1 MB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.makefile make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppThermoPower_ThermoPower.Test.WaterComponents.TestJoinRevCalcHelperMain.o OMCppThermoPower_ThermoPower.Test.WaterComponents.TestJoinRevCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoPower_ThermoPower.Test.WaterComponents.TestJoinRevCalcHelperMain.o] Error 1