Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001086/0.001087, allocations: 202.1 kB / 8.543 MB, free: 1.793 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 225.5 MB / 234.4 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00086/0.00086, allocations: 85.47 kB / 286.3 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1759/0.1759, allocations: 45.14 MB / 383.3 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2111/0.387, allocations: 69.36 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0937/0.4807, allocations: 63.25 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.52/5.001, allocations: 2.827 GB / 3.331 GB, free: 79.69 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/5.001, allocations: 79.95 kB / 3.331 GB, free: 79.61 MB / 0.5261 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.242/7.243, allocations: 0.7505 GB / 4.081 GB, free: 48.11 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/7.243, allocations: 11.25 kB / 4.081 GB, free: 48.11 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003936/7.247, allocations: 497.1 kB / 4.082 GB, free: 48.04 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003355/7.25, allocations: 1.144 MB / 4.083 GB, free: 47.71 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/7.25, allocations: 106.6 kB / 4.083 GB, free: 47.65 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004117/7.251, allocations: 54.41 kB / 4.083 GB, free: 47.65 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002781/7.254, allocations: 1.37 MB / 4.084 GB, free: 47.64 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003217/7.257, allocations: 1.483 MB / 4.086 GB, free: 47.31 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.512e-05/7.257, allocations: 3.656 kB / 4.086 GB, free: 47.31 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002139/7.257, allocations: 3.125 kB / 4.086 GB, free: 47.31 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.323e-05/7.257, allocations: 88.36 kB / 4.086 GB, free: 47.3 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2802/7.537, allocations: 152.3 MB / 4.235 GB, free: 27.55 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/7.539, allocations: 0.4965 MB / 4.235 GB, free: 27.53 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000657/7.539, allocations: 379.8 kB / 4.235 GB, free: 27.52 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2882/7.827, allocations: 55.46 MB / 4.29 GB, free: 150 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000839/7.828, allocations: 0.505 MB / 4.29 GB, free: 149.9 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=66): time 2.114e-06/7.828, allocations: 0 / 4.29 GB, free: 149.9 MB / 0.6355 GB Notification: Performance of matching and sorting (n=70): time 0.008948/7.837, allocations: 3.235 MB / 4.293 GB, free: 149.3 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/7.837, allocations: 347.7 kB / 4.294 GB, free: 148.9 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001075/7.838, allocations: 0.8579 MB / 4.294 GB, free: 148.8 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 6.698e-05/7.839, allocations: 28.98 kB / 4.294 GB, free: 148.7 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002843/7.839, allocations: 0.5116 MB / 4.295 GB, free: 148.5 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/7.839, allocations: 240 kB / 4.295 GB, free: 148.4 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.97e-05/7.839, allocations: 0 / 4.295 GB, free: 148.4 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 7.218e-05/7.839, allocations: 354.7 kB / 4.296 GB, free: 148 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007093/7.84, allocations: 0.4993 MB / 4.296 GB, free: 148 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008806/7.841, allocations: 0.9569 MB / 4.297 GB, free: 147.5 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003803/7.845, allocations: 1.171 MB / 4.298 GB, free: 147.5 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/7.845, allocations: 2.938 kB / 4.298 GB, free: 147.5 MB / 0.6355 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006919/7.852, allocations: 2.694 MB / 4.301 GB, free: 147.4 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.000706/7.852, allocations: 5.396 MB / 4.306 GB, free: 141.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/7.852, allocations: 13.83 kB / 4.306 GB, free: 141.8 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002099/7.854, allocations: 0.6329 MB / 4.307 GB, free: 141.8 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008922/7.855, allocations: 253.3 kB / 4.307 GB, free: 141.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003084/7.858, allocations: 1.862 MB / 4.309 GB, free: 141.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/7.86, allocations: 127.2 kB / 4.309 GB, free: 141.2 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/7.86, allocations: 76.28 kB / 4.309 GB, free: 141.2 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 7.554e-06/7.86, allocations: 6.5 kB / 4.309 GB, free: 141.2 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005007/7.865, allocations: 1.888 MB / 4.311 GB, free: 141.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/7.865, allocations: 17.28 kB / 4.311 GB, free: 141.2 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/7.866, allocations: 342.6 kB / 4.311 GB, free: 141.2 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/7.867, allocations: 286.1 kB / 4.311 GB, free: 141.2 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/7.868, allocations: 1.086 MB / 4.312 GB, free: 140.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/7.87, allocations: 117 kB / 4.313 GB, free: 140.6 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/7.87, allocations: 73.7 kB / 4.313 GB, free: 140.6 MB / 0.6355 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.0003423/7.87, allocations: 159.2 kB / 4.313 GB, free: 140.5 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/7.871, allocations: 402.6 kB / 4.313 GB, free: 140.5 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004149/7.875, allocations: 3.028 MB / 4.316 GB, free: 140.3 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.298e-05/7.876, allocations: 31.75 kB / 4.316 GB, free: 140.3 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/7.876, allocations: 0 / 4.316 GB, free: 140.3 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/7.876, allocations: 3.797 kB / 4.316 GB, free: 140.3 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005259/7.881, allocations: 4.686 MB / 4.321 GB, free: 139.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/7.881, allocations: 2.469 kB / 4.321 GB, free: 139.6 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005292/7.881, allocations: 126.8 kB / 4.321 GB, free: 139.6 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004554/7.886, allocations: 1.343 MB / 4.322 GB, free: 139.5 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.081e-05/7.886, allocations: 19.12 kB / 4.322 GB, free: 139.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001905/7.888, allocations: 2.164 MB / 4.324 GB, free: 138.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/7.888, allocations: 3.906 kB / 4.324 GB, free: 138.5 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004624/7.893, allocations: 3.427 MB / 4.328 GB, free: 138.1 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005632/7.898, allocations: 4.753 MB / 4.332 GB, free: 137.3 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006119/7.899, allocations: 364.7 kB / 4.333 GB, free: 137.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/7.899, allocations: 6.25 kB / 4.333 GB, free: 137.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008477/7.9, allocations: 77 kB / 4.333 GB, free: 137.1 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/7.9, allocations: 63.36 kB / 4.333 GB, free: 137.1 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.785e-05/7.9, allocations: 27.22 kB / 4.333 GB, free: 137.1 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0007828/7.901, allocations: 0.623 MB / 4.333 GB, free: 137 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.008276/7.909, allocations: 2.407 MB / 4.336 GB, free: 136.9 MB / 0.6355 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.007706/7.917, allocations: 2.588 MB / 4.338 GB, free: 136.6 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.003394/7.92, allocations: 2.476 MB / 4.341 GB, free: 136.6 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/7.92, allocations: 0 / 4.341 GB, free: 136.6 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001156/7.922, allocations: 1.158 MB / 4.342 GB, free: 136.6 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002095/7.924, allocations: 448.4 kB / 4.342 GB, free: 136.6 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003606/7.927, allocations: 2.511 MB / 4.345 GB, free: 136.1 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009164/7.928, allocations: 1.444 MB / 4.346 GB, free: 135.4 MB / 0.6355 GB Notification: Performance of SimCode: time 4.61e-07/7.928, allocations: 0 / 4.346 GB, free: 135.4 MB / 0.6355 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1)