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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestJoinRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestJoinRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009113/0.0009113, allocations: 183.9 kB / 8.135 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.022/1.022, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008407/0.0008407, allocations: 97.19 kB / 261.8 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3017/0.3017, allocations: 48.75 MB / 358.4 MB, free: 53.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1082/0.4099, allocations: 66.37 MB / 424.8 MB, free: 8.117 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.5143, allocations: 60.24 MB / 485.1 MB, free: 11.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.532/5.046, allocations: 2.85 GB / 3.324 GB, free: 14.36 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003406/5.046, allocations: 81.22 kB / 3.324 GB, free: 14.28 MB / 0.5105 GB 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 2.069/7.116, allocations: 0.6421 GB / 3.966 GB, free: 47.21 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/7.116, allocations: 9.438 kB / 3.966 GB, free: 47.21 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004922/7.116, allocations: 123.3 kB / 3.966 GB, free: 47.16 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/7.117, allocations: 0.5982 MB / 3.967 GB, free: 46.91 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/7.117, allocations: 23.22 kB / 3.967 GB, free: 46.91 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/7.118, allocations: 43.5 kB / 3.967 GB, free: 46.91 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008015/7.118, allocations: 441.2 kB / 3.967 GB, free: 46.91 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009923/7.119, allocations: 0.7588 MB / 3.968 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/7.119, allocations: 7.094 kB / 3.968 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.669e-05/7.119, allocations: 3.891 kB / 3.968 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/7.119, allocations: 16.94 kB / 3.968 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00363/7.123, allocations: 4.458 MB / 3.972 GB, free: 43.24 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004925/7.124, allocations: 383.4 kB / 3.973 GB, free: 43.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002396/7.124, allocations: 174 kB / 3.973 GB, free: 43.18 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05568/7.18, allocations: 32.02 MB / 4.004 GB, free: 23.79 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005728/7.18, allocations: 281 kB / 4.004 GB, free: 23.71 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 2.525e-06/7.18, allocations: 0 / 4.004 GB, free: 23.71 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42): time 0.001418/7.182, allocations: 0.5244 MB / 4.005 GB, free: 23.65 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/7.182, allocations: 91.17 kB / 4.005 GB, free: 23.56 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004412/7.182, allocations: 356.9 kB / 4.005 GB, free: 23.45 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.659e-05/7.182, allocations: 31.27 kB / 4.005 GB, free: 23.41 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/7.182, allocations: 294.1 kB / 4.006 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/7.183, allocations: 124.9 kB / 4.006 GB, free: 23.15 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/7.183, allocations: 3.344 kB / 4.006 GB, free: 23.15 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.768e-05/7.183, allocations: 363.5 kB / 4.006 GB, free: 22.84 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/7.183, allocations: 154.7 kB / 4.006 GB, free: 22.84 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002897/7.183, allocations: 226.5 kB / 4.006 GB, free: 22.77 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003888/7.184, allocations: 154.4 kB / 4.006 GB, free: 22.77 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/7.184, allocations: 0 / 4.006 GB, free: 22.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001312/7.185, allocations: 0.6031 MB / 4.007 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001488/7.185, allocations: 0.7056 MB / 4.008 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/7.185, allocations: 0 / 4.008 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/7.185, allocations: 4.797 kB / 4.008 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007729/7.186, allocations: 174.2 kB / 4.008 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/7.186, allocations: 2.938 kB / 4.008 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/7.187, allocations: 178.1 kB / 4.008 GB, free: 21.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-05/7.187, allocations: 24.92 kB / 4.008 GB, free: 21.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.566e-06/7.187, allocations: 6.812 kB / 4.008 GB, free: 21.96 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007444/7.188, allocations: 346.2 kB / 4.008 GB, free: 21.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/7.188, allocations: 2.594 kB / 4.008 GB, free: 21.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.067e-06/7.188, allocations: 10.25 kB / 4.008 GB, free: 21.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006233/7.188, allocations: 172.3 kB / 4.009 GB, free: 21.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/7.189, allocations: 6.375 kB / 4.009 GB, free: 21.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008581/7.189, allocations: 159.8 kB / 4.009 GB, free: 21.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.791e-05/7.189, allocations: 27.3 kB / 4.009 GB, free: 21.93 MB / 0.5261 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 ($whenCondition4,$whenCondition3,$PRE.Sine1.T_start,Sine1.T_start,$PRE.Sine1.count,Sine1.count,$PRE.Sine2.T_start,Sine2.T_start,$PRE.Sine2.count,Sine2.count,$whenCondition2,$whenCondition1,$PRE.Sine3.T_start,Sine3.T_start,$PRE.Sine3.count,Sine3.count,$PRE.Sine4.T_start,Sine4.T_start,$PRE.Sine4.count,Sine4.count,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001374/7.19, allocations: 122.3 kB / 4.009 GB, free: 21.83 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004416/7.19, allocations: 181.7 kB / 4.009 GB, free: 21.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/7.192, allocations: 1.861 MB / 4.011 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.342e-05/7.192, allocations: 26.84 kB / 4.011 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/7.192, allocations: 2.297 kB / 4.011 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/7.192, allocations: 0 / 4.011 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009384/7.193, allocations: 0.9277 MB / 4.012 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/7.193, allocations: 0 / 4.012 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006403/7.194, allocations: 157.8 kB / 4.012 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/7.194, allocations: 0 / 4.012 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.094e-05/7.194, allocations: 10.62 kB / 4.012 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/7.194, allocations: 3.094 kB / 4.012 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/7.194, allocations: 6.938 kB / 4.012 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001567/7.195, allocations: 1.469 MB / 4.013 GB, free: 21.21 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001794/7.197, allocations: 1.887 MB / 4.015 GB, free: 20.62 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002681/7.197, allocations: 210.9 kB / 4.016 GB, free: 20.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/7.197, allocations: 6.781 kB / 4.016 GB, free: 20.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007746/7.198, allocations: 149.2 kB / 4.016 GB, free: 20.47 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/7.198, allocations: 73.06 kB / 4.016 GB, free: 20.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.239e-05/7.198, allocations: 18.91 kB / 4.016 GB, free: 20.47 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002193/7.199, allocations: 271.2 kB / 4.016 GB, free: 20.38 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005892/7.205, allocations: 1.407 MB / 4.017 GB, free: 20.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count) * Number of discrete states: 4 (Sine3.count,Sine4.count,Sine1.count,Sine2.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006478/7.211, allocations: 2.128 MB / 4.019 GB, free: 19.91 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00151/7.213, allocations: 1.333 MB / 4.021 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/7.213, allocations: 0 / 4.021 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007722/7.213, allocations: 0.84 MB / 4.022 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/7.215, allocations: 234.7 kB / 4.022 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/7.218, allocations: 1.543 MB / 4.023 GB, free: 19.31 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005732/7.218, allocations: 1.1 MB / 4.024 GB, free: 18.6 MB / 0.5261 GB Notification: Performance of SimCode: time 5.61e-07/7.218, allocations: 0 / 4.024 GB, free: 18.6 MB / 0.5261 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe 2>&1)