Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 183 kB / 8.517 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.199/1.199, allocations: 221.4 MB / 230.3 MB, free: 7.668 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009603/0.0009602, allocations: 89.86 kB / 281.2 MB, free: 5.5 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1676/0.1676, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1897/0.3573, allocations: 68.03 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09991/0.4572, allocations: 61.91 MB / 0.4942 GB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.11/5.568, allocations: 2.826 GB / 3.32 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/5.568, allocations: 75.77 kB / 3.32 GB, free: 154.5 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 2.309/7.877, allocations: 0.7507 GB / 4.071 GB, free: 9.371 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/7.877, allocations: 13.19 kB / 4.071 GB, free: 9.359 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003933/7.881, allocations: 497.8 kB / 4.071 GB, free: 8.871 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003291/7.884, allocations: 1.143 MB / 4.072 GB, free: 7.703 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/7.884, allocations: 113.4 kB / 4.073 GB, free: 7.578 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003879/7.885, allocations: 56 kB / 4.073 GB, free: 7.523 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002883/7.887, allocations: 1.367 MB / 4.074 GB, free: 6.156 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002968/7.89, allocations: 1.481 MB / 4.075 GB, free: 4.562 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.957e-05/7.891, allocations: 7.938 kB / 4.075 GB, free: 4.555 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/7.891, allocations: 4 kB / 4.075 GB, free: 4.551 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.707e-05/7.891, allocations: 85.95 kB / 4.075 GB, free: 4.469 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.434/8.325, allocations: 135.1 MB / 4.207 GB, free: 38.81 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009589/8.326, allocations: 0.4894 MB / 4.208 GB, free: 38.79 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006016/8.326, allocations: 375.1 kB / 4.208 GB, free: 38.78 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09566/8.422, allocations: 48.33 MB / 4.255 GB, free: 39.59 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/8.423, allocations: 0.5023 MB / 4.256 GB, free: 39.48 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=66): time 4.038e-06/8.423, allocations: 0 / 4.256 GB, free: 39.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=70): time 0.01057/8.434, allocations: 3.236 MB / 4.259 GB, free: 38.79 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001548/8.434, allocations: 349 kB / 4.259 GB, free: 38.39 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/8.435, allocations: 0.8667 MB / 4.26 GB, free: 38.23 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001191/8.436, allocations: 25.7 kB / 4.26 GB, free: 38.2 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004089/8.436, allocations: 0.4985 MB / 4.261 GB, free: 37.94 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002599/8.436, allocations: 237.5 kB / 4.261 GB, free: 37.82 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.461e-05/8.436, allocations: 0 / 4.261 GB, free: 37.82 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000138/8.437, allocations: 361.3 kB / 4.261 GB, free: 37.52 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007951/8.437, allocations: 0.4986 MB / 4.262 GB, free: 37.51 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009612/8.438, allocations: 0.9661 MB / 4.263 GB, free: 36.95 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003206/8.442, allocations: 1.059 MB / 4.264 GB, free: 36.91 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/8.442, allocations: 3.938 kB / 4.264 GB, free: 36.91 MB / 0.6042 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006741/8.448, allocations: 2.599 MB / 4.266 GB, free: 36.79 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001608/8.45, allocations: 5.384 MB / 4.272 GB, free: 31.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.705e-05/8.45, allocations: 14.5 kB / 4.272 GB, free: 31.12 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002151/8.452, allocations: 0.6366 MB / 4.272 GB, free: 31.1 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/8.453, allocations: 250 kB / 4.272 GB, free: 31.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00336/8.457, allocations: 1.868 MB / 4.274 GB, free: 30.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/8.458, allocations: 128 kB / 4.274 GB, free: 30.53 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002215/8.459, allocations: 81.23 kB / 4.275 GB, free: 30.53 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/8.459, allocations: 5.219 kB / 4.275 GB, free: 30.53 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004438/8.463, allocations: 1.789 MB / 4.276 GB, free: 30.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.742e-05/8.463, allocations: 14.91 kB / 4.276 GB, free: 30.49 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/8.464, allocations: 338.1 kB / 4.277 GB, free: 30.47 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/8.466, allocations: 287.7 kB / 4.277 GB, free: 30.47 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/8.467, allocations: 1.085 MB / 4.278 GB, free: 29.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/8.468, allocations: 112.5 kB / 4.278 GB, free: 29.92 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001515/8.468, allocations: 76.23 kB / 4.278 GB, free: 29.92 MB / 0.6042 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.0003979/8.469, allocations: 159.5 kB / 4.278 GB, free: 29.82 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001196/8.47, allocations: 409.4 kB / 4.279 GB, free: 29.76 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004836/8.475, allocations: 3.019 MB / 4.282 GB, free: 29.56 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.193e-05/8.475, allocations: 29.81 kB / 4.282 GB, free: 29.56 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/8.475, allocations: 1 kB / 4.282 GB, free: 29.56 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/8.475, allocations: 3.953 kB / 4.282 GB, free: 29.56 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006967/8.482, allocations: 4.689 MB / 4.286 GB, free: 28.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.767e-06/8.482, allocations: 5.062 kB / 4.286 GB, free: 28.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006064/8.483, allocations: 125.7 kB / 4.286 GB, free: 28.84 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004649/8.487, allocations: 1.343 MB / 4.288 GB, free: 28.75 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.762e-05/8.487, allocations: 22.2 kB / 4.288 GB, free: 28.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1831/8.67, allocations: 2.158 MB / 4.29 GB, free: 151.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/8.67, allocations: 0 / 4.29 GB, free: 151.6 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004917/8.675, allocations: 3.429 MB / 4.293 GB, free: 151.3 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005716/8.681, allocations: 4.751 MB / 4.298 GB, free: 150.6 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006504/8.682, allocations: 362.3 kB / 4.298 GB, free: 150.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002263/8.682, allocations: 7.5 kB / 4.298 GB, free: 150.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008957/8.683, allocations: 84.81 kB / 4.298 GB, free: 150.5 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/8.683, allocations: 58.86 kB / 4.298 GB, free: 150.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.495e-05/8.683, allocations: 31.28 kB / 4.298 GB, free: 150.5 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0008166/8.684, allocations: 0.6194 MB / 4.299 GB, free: 150.4 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.00972/8.694, allocations: 2.363 MB / 4.301 GB, free: 150.4 MB / 0.6042 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.009605/8.703, allocations: 2.573 MB / 4.304 GB, free: 150.2 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003905/8.707, allocations: 2.467 MB / 4.306 GB, free: 150.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/8.707, allocations: 3.625 kB / 4.306 GB, free: 150.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001284/8.709, allocations: 1.155 MB / 4.307 GB, free: 150.2 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00241/8.711, allocations: 457.5 kB / 4.308 GB, free: 150.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004236/8.715, allocations: 2.516 MB / 4.31 GB, free: 149.7 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/8.716, allocations: 1.438 MB / 4.312 GB, free: 148.9 MB / 0.6042 GB Notification: Performance of SimCode: time 8.41e-07/8.716, allocations: 0 / 4.312 GB, free: 148.9 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1)