Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",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.001379/0.001379, allocations: 186.9 kB / 7.805 MB, free: 1.188 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.588/1.588, allocations: 205.2 MB / 213.4 MB, free: 8.512 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009869/0.0009868, allocations: 88.45 kB / 261.4 MB, free: 5.137 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1969/0.1969, allocations: 43.5 MB / 352.9 MB, free: 11.34 MB / 306.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2549/0.4518, allocations: 64.95 MB / 417.8 MB, free: 68.1 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.5745, allocations: 58.84 MB / 476.7 MB, free: 9.203 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.465/7.04, allocations: 2.821 GB / 3.286 GB, free: 28.45 MB / 0.5027 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003209/7.04, allocations: 75.97 kB / 3.287 GB, free: 28.38 MB / 0.5027 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 3.509/10.55, allocations: 0.7432 GB / 4.03 GB, free: 45.27 MB / 0.5183 GB Notification: Performance of prepare preOptimizeDAE: time 6.158e-05/10.55, allocations: 12.81 kB / 4.03 GB, free: 45.27 MB / 0.5183 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004603/10.55, allocations: 495.4 kB / 4.03 GB, free: 45.14 MB / 0.5183 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004351/10.56, allocations: 1.144 MB / 4.031 GB, free: 44.5 MB / 0.5183 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002347/10.56, allocations: 106.3 kB / 4.031 GB, free: 44.43 MB / 0.5183 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005917/10.56, allocations: 56.12 kB / 4.032 GB, free: 44.43 MB / 0.5183 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003719/10.56, allocations: 1.368 MB / 4.033 GB, free: 43.91 MB / 0.5183 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004028/10.57, allocations: 1.479 MB / 4.034 GB, free: 43.14 MB / 0.5183 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.115e-05/10.57, allocations: 7.75 kB / 4.034 GB, free: 43.13 MB / 0.5183 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002999/10.57, allocations: 3.844 kB / 4.034 GB, free: 43.13 MB / 0.5183 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001249/10.57, allocations: 85.67 kB / 4.034 GB, free: 43.12 MB / 0.5183 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.706/11.27, allocations: 135.2 MB / 4.166 GB, free: 67.86 MB / 0.5339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/11.27, allocations: 493.6 kB / 4.167 GB, free: 67.84 MB / 0.5339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008427/11.28, allocations: 379.5 kB / 4.167 GB, free: 67.84 MB / 0.5339 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1007/11.38, allocations: 48.33 MB / 4.214 GB, free: 36.91 MB / 0.5339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001453/11.38, allocations: 0.509 MB / 4.215 GB, free: 36.8 MB / 0.5339 GB Notification: Performance of pre-optimization done (n=66): time 4.869e-06/11.38, allocations: 0 / 4.215 GB, free: 36.8 MB / 0.5339 GB Notification: Performance of matching and sorting (n=70): time 0.01258/11.39, allocations: 3.226 MB / 4.218 GB, free: 36.14 MB / 0.5339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/11.39, allocations: 353 kB / 4.218 GB, free: 35.73 MB / 0.5339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00218/11.39, allocations: 0.8593 MB / 4.219 GB, free: 35.57 MB / 0.5339 GB Notification: Performance of collectPreVariables (initialization): time 0.0001375/11.39, allocations: 25.7 kB / 4.219 GB, free: 35.54 MB / 0.5339 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007374/11.39, allocations: 0.5016 MB / 4.22 GB, free: 35.28 MB / 0.5339 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003597/11.39, allocations: 237.3 kB / 4.22 GB, free: 35.16 MB / 0.5339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/11.39, allocations: 0 / 4.22 GB, free: 35.16 MB / 0.5339 GB Notification: Performance of setup shared object (initialization): time 0.0001493/11.39, allocations: 361.7 kB / 4.22 GB, free: 34.86 MB / 0.5339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/11.4, allocations: 0.4946 MB / 4.221 GB, free: 34.86 MB / 0.5339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/11.4, allocations: 0.961 MB / 4.222 GB, free: 34.29 MB / 0.5339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00822/11.41, allocations: 1.768 MB / 4.224 GB, free: 34.23 MB / 0.5339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.356e-05/11.41, allocations: 3.781 kB / 4.224 GB, free: 34.23 MB / 0.5339 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01307/11.42, allocations: 3.294 MB / 4.227 GB, free: 34.09 MB / 0.5339 GB Notification: Performance of prepare postOptimizeDAE: time 0.001848/11.42, allocations: 5.395 MB / 4.232 GB, free: 28.43 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-05/11.42, allocations: 12.53 kB / 4.232 GB, free: 28.43 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003765/11.42, allocations: 0.7663 MB / 4.233 GB, free: 28.39 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/11.43, allocations: 252.3 kB / 4.233 GB, free: 28.39 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003877/11.43, allocations: 1.859 MB / 4.235 GB, free: 27.85 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002229/11.43, allocations: 124.5 kB / 4.235 GB, free: 27.84 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002492/11.43, allocations: 73.5 kB / 4.235 GB, free: 27.84 MB / 0.5339 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/11.43, allocations: 0 / 4.235 GB, free: 27.84 MB / 0.5339 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00979/11.44, allocations: 2.498 MB / 4.237 GB, free: 27.77 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.655e-05/11.44, allocations: 14.53 kB / 4.237 GB, free: 27.77 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/11.44, allocations: 347.5 kB / 4.238 GB, free: 27.75 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/11.44, allocations: 283.4 kB / 4.238 GB, free: 27.75 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/11.45, allocations: 1.083 MB / 4.239 GB, free: 27.22 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/11.45, allocations: 119.1 kB / 4.239 GB, free: 27.2 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002264/11.45, allocations: 76.53 kB / 4.239 GB, free: 27.2 MB / 0.5339 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0006665/11.45, allocations: 158.3 kB / 4.239 GB, free: 27.09 MB / 0.5339 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001568/11.45, allocations: 403.2 kB / 4.24 GB, free: 27.04 MB / 0.5339 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005606/11.46, allocations: 3.029 MB / 4.243 GB, free: 26.84 MB / 0.5339 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-05/11.46, allocations: 29.5 kB / 4.243 GB, free: 26.84 MB / 0.5339 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/11.46, allocations: 0 / 4.243 GB, free: 26.84 MB / 0.5339 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/11.46, allocations: 3.375 kB / 4.243 GB, free: 26.84 MB / 0.5339 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008056/11.46, allocations: 4.692 MB / 4.247 GB, free: 26.13 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/11.46, allocations: 6.5 kB / 4.247 GB, free: 26.13 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005873/11.46, allocations: 124.8 kB / 4.248 GB, free: 26.13 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004957/11.47, allocations: 1.34 MB / 4.249 GB, free: 26.04 MB / 0.5339 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/11.47, allocations: 22.92 kB / 4.249 GB, free: 26.04 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003167/11.47, allocations: 2.155 MB / 4.251 GB, free: 40.96 MB / 0.5496 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.114e-05/11.47, allocations: 10.69 kB / 4.251 GB, free: 40.96 MB / 0.5496 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006749/11.48, allocations: 3.425 MB / 4.254 GB, free: 40.56 MB / 0.5496 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00779/11.49, allocations: 4.752 MB / 4.259 GB, free: 39.77 MB / 0.5496 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001206/11.49, allocations: 364 kB / 4.259 GB, free: 39.6 MB / 0.5496 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005498/11.49, allocations: 3.938 kB / 4.259 GB, free: 39.6 MB / 0.5496 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/11.49, allocations: 73.36 kB / 4.259 GB, free: 39.59 MB / 0.5496 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/11.49, allocations: 56.97 kB / 4.259 GB, free: 39.59 MB / 0.5496 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-05/11.49, allocations: 29.02 kB / 4.259 GB, free: 39.59 MB / 0.5496 GB Notification: Performance of sort global known variables: time 0.001523/11.49, allocations: 0.6234 MB / 4.26 GB, free: 39.48 MB / 0.5496 GB Notification: Performance of remove unused functions: time 0.01506/11.51, allocations: 2.364 MB / 4.262 GB, free: 39.46 MB / 0.5496 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01683/11.52, allocations: 2.569 MB / 4.265 GB, free: 39.09 MB / 0.5496 GB Notification: Performance of simCode: created initialization part: time 0.008268/11.53, allocations: 2.468 MB / 4.267 GB, free: 39.04 MB / 0.5496 GB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/11.53, allocations: 2.219 kB / 4.267 GB, free: 39.04 MB / 0.5496 GB Notification: Performance of simCode: created simulation system equations: time 0.002472/11.53, allocations: 1.158 MB / 4.268 GB, free: 39.04 MB / 0.5496 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003375/11.54, allocations: 444.5 kB / 4.269 GB, free: 39.01 MB / 0.5496 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007635/11.55, allocations: 2.516 MB / 4.271 GB, free: 38.45 MB / 0.5496 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002518/11.55, allocations: 1.444 MB / 4.273 GB, free: 37.7 MB / 0.5496 GB Notification: Performance of SimCode: time 1.553e-06/11.55, allocations: 0 / 4.273 GB, free: 37.7 MB / 0.5496 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1)