Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",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.001198/0.001198, allocations: 192 kB / 7.804 MB, free: 2.496 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.426/1.426, allocations: 205.2 MB / 213.4 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.0009185/0.0009183, allocations: 88.16 kB / 261.4 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2232/0.2232, allocations: 43.49 MB / 352.8 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2354/0.4587, allocations: 64.98 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3713/0.83, allocations: 58.83 MB / 476.6 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.988/6.818, allocations: 2.832 GB / 3.298 GB, free: 33.82 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003863/6.819, allocations: 75.95 kB / 3.298 GB, free: 33.75 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 2.212/9.03, allocations: 0.4908 GB / 3.789 GB, free: 49.23 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.648e-05/9.03, allocations: 9.938 kB / 3.789 GB, free: 49.23 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007151/9.038, allocations: 0.7367 MB / 3.789 GB, free: 49.12 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006284/9.044, allocations: 1.58 MB / 3.791 GB, free: 48.75 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002472/9.044, allocations: 93.36 kB / 3.791 GB, free: 48.75 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00107/9.045, allocations: 106.3 kB / 3.791 GB, free: 48.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007129/9.052, allocations: 2.923 MB / 3.794 GB, free: 48.74 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00727/9.06, allocations: 2.947 MB / 3.797 GB, free: 48.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.197e-05/9.06, allocations: 5.531 kB / 3.797 GB, free: 48.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005744/9.06, allocations: 3.469 kB / 3.797 GB, free: 48.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001748/9.061, allocations: 188.1 kB / 3.797 GB, free: 48.29 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.672/9.733, allocations: 141.1 MB / 3.935 GB, free: 129 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002968/9.736, allocations: 1.151 MB / 3.936 GB, free: 128.9 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001743/9.737, allocations: 1.021 MB / 3.937 GB, free: 128.9 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03407/9.771, allocations: 16.73 MB / 3.953 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002768/9.774, allocations: 1.174 MB / 3.955 GB, free: 118.6 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=139): time 5.6e-06/9.774, allocations: 0 / 3.955 GB, free: 118.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=159): time 0.01938/9.794, allocations: 7.687 MB / 3.962 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.984e-05/9.794, allocations: 221.8 kB / 3.962 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/9.795, allocations: 0.95 MB / 3.963 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000142/9.796, allocations: 25.7 kB / 3.963 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006659/9.796, allocations: 0.7751 MB / 3.964 GB, free: 116.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005006/9.797, allocations: 0.5367 MB / 3.964 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/9.797, allocations: 0 / 3.964 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001988/9.797, allocations: 445 kB / 3.965 GB, free: 116.4 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001621/9.799, allocations: 1.24 MB / 3.966 GB, free: 116.4 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001934/9.801, allocations: 1.784 MB / 3.968 GB, free: 115.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006424/9.807, allocations: 2.165 MB / 3.97 GB, free: 115.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.391e-05/9.807, allocations: 3.875 kB / 3.97 GB, free: 115.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01277/9.82, allocations: 5.315 MB / 3.975 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002074/9.822, allocations: 6.259 MB / 3.981 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.692e-05/9.822, allocations: 19.11 kB / 3.981 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01092/9.833, allocations: 2.854 MB / 3.984 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/9.835, allocations: 327 kB / 3.984 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009043/9.844, allocations: 4.844 MB / 3.989 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003082/9.847, allocations: 247.5 kB / 3.989 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002832/9.847, allocations: 112.3 kB / 3.989 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/9.847, allocations: 3.188 kB / 3.989 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01011/9.857, allocations: 4.194 MB / 3.994 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.386e-05/9.857, allocations: 21.75 kB / 3.994 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008242/9.866, allocations: 2.185 MB / 3.996 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/9.867, allocations: 372.4 kB / 3.996 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00516/9.873, allocations: 3.632 MB / 4 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002828/9.875, allocations: 225.8 kB / 4 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002648/9.876, allocations: 108.3 kB / 4 GB, free: 107.8 MB / 0.5417 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: 72 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0008269/9.877, allocations: 165.5 kB / 4 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001905/9.879, allocations: 0.5134 MB / 4.001 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009252/9.888, allocations: 5.198 MB / 4.006 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.572e-05/9.888, allocations: 41.47 kB / 4.006 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/9.888, allocations: 3.469 kB / 4.006 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006015/9.894, allocations: 4.665 MB / 4.01 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/9.906, allocations: 7.68 MB / 4.018 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.977e-05/9.906, allocations: 3.562 kB / 4.018 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001628/9.908, allocations: 365 kB / 4.018 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/9.909, allocations: 421.2 kB / 4.019 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001497/9.909, allocations: 48.11 kB / 4.019 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/9.911, allocations: 3.392 MB / 4.022 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/9.911, allocations: 0 / 4.022 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009486/9.921, allocations: 6.396 MB / 4.028 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01243/9.933, allocations: 8.884 MB / 4.037 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001667/9.935, allocations: 0.5395 MB / 4.037 GB, free: 100.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003684/9.935, allocations: 22.08 kB / 4.037 GB, free: 100.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/9.937, allocations: 163.7 kB / 4.038 GB, free: 100.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003494/9.937, allocations: 152.4 kB / 4.038 GB, free: 100.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/9.937, allocations: 62.02 kB / 4.038 GB, free: 100.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001062/9.938, allocations: 0.688 MB / 4.038 GB, free: 99.99 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02025/9.959, allocations: 2.54 MB / 4.041 GB, free: 99.52 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01508/9.974, allocations: 2.153 MB / 4.043 GB, free: 99.25 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01176/9.986, allocations: 5.36 MB / 4.048 GB, free: 97.47 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/9.986, allocations: 10 kB / 4.048 GB, free: 97.47 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004314/9.99, allocations: 2.391 MB / 4.051 GB, free: 96.52 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003794/9.994, allocations: 0.5298 MB / 4.051 GB, free: 96.43 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/10.01, allocations: 5.026 MB / 4.056 GB, free: 94.64 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003757/10.01, allocations: 1.992 MB / 4.058 GB, free: 93.75 MB / 0.5417 GB Notification: Performance of SimCode: time 1.914e-06/10.01, allocations: 0 / 4.058 GB, free: 93.75 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1)