Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001017/0.001018, allocations: 188.3 kB / 8.521 MB, free: 1.824 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.192/1.192, allocations: 221.4 MB / 230.3 MB, free: 7.773 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.0008917/0.0008919, allocations: 92.72 kB / 281.2 MB, free: 5.531 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.1637/0.1637, allocations: 44.15 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1751/0.3388, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09043/0.4293, allocations: 61.91 MB / 0.4942 GB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.493/4.922, allocations: 2.837 GB / 3.331 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/4.922, allocations: 75.2 kB / 3.332 GB, free: 142.8 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 1.67/6.592, allocations: 0.4963 GB / 3.828 GB, free: 44.07 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.513e-05/6.592, allocations: 13.19 kB / 3.828 GB, free: 44.06 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00678/6.599, allocations: 0.7431 MB / 3.829 GB, free: 43.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005468/6.604, allocations: 1.582 MB / 3.83 GB, free: 42.17 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003299/6.605, allocations: 100.2 kB / 3.83 GB, free: 42.08 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001342/6.606, allocations: 104.6 kB / 3.83 GB, free: 41.98 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006927/6.613, allocations: 2.916 MB / 3.833 GB, free: 39.4 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006662/6.62, allocations: 2.956 MB / 3.836 GB, free: 36.79 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.15e-05/6.62, allocations: 3.938 kB / 3.836 GB, free: 36.79 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00062/6.621, allocations: 8 kB / 3.836 GB, free: 36.78 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001666/6.621, allocations: 179.9 kB / 3.836 GB, free: 36.63 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5298/7.151, allocations: 141.1 MB / 3.974 GB, free: 51.75 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002343/7.153, allocations: 1.17 MB / 3.975 GB, free: 51.72 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001727/7.155, allocations: 1.016 MB / 3.976 GB, free: 51.71 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03517/7.19, allocations: 16.73 MB / 3.993 GB, free: 40.8 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002605/7.193, allocations: 1.177 MB / 3.994 GB, free: 40.69 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=139): time 5.791e-06/7.193, allocations: 0 / 3.994 GB, free: 40.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=159): time 0.02422/7.217, allocations: 7.676 MB / 4.001 GB, free: 39.78 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.633e-05/7.217, allocations: 226.8 kB / 4.001 GB, free: 39.53 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001996/7.219, allocations: 0.9584 MB / 4.002 GB, free: 39.37 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003736/7.219, allocations: 29.55 kB / 4.002 GB, free: 39.34 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008189/7.22, allocations: 0.7648 MB / 4.003 GB, free: 38.96 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007753/7.221, allocations: 0.537 MB / 4.004 GB, free: 38.69 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003108/7.221, allocations: 0 / 4.004 GB, free: 38.69 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002641/7.222, allocations: 447.8 kB / 4.004 GB, free: 38.38 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002037/7.224, allocations: 1.233 MB / 4.005 GB, free: 38.37 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002493/7.226, allocations: 1.784 MB / 4.007 GB, free: 37.74 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004963/7.231, allocations: 1.803 MB / 4.009 GB, free: 37.69 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.999e-05/7.231, allocations: 7.656 kB / 4.009 GB, free: 37.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01214/7.243, allocations: 4.953 MB / 4.014 GB, free: 37.52 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001449/7.245, allocations: 6.262 MB / 4.02 GB, free: 30.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.223e-05/7.245, allocations: 15.56 kB / 4.02 GB, free: 30.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01006/7.255, allocations: 2.726 MB / 4.022 GB, free: 30.85 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001688/7.257, allocations: 334.7 kB / 4.023 GB, free: 30.85 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/7.267, allocations: 4.846 MB / 4.027 GB, free: 30.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00322/7.27, allocations: 247.2 kB / 4.028 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006012/7.271, allocations: 107.7 kB / 4.028 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/7.271, allocations: 3.156 kB / 4.028 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009081/7.28, allocations: 3.84 MB / 4.032 GB, free: 30.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.189e-05/7.28, allocations: 16.62 kB / 4.032 GB, free: 30.15 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008326/7.288, allocations: 2.189 MB / 4.034 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/7.29, allocations: 372.5 kB / 4.034 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005851/7.296, allocations: 3.638 MB / 4.038 GB, free: 45.49 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002854/7.299, allocations: 219.3 kB / 4.038 GB, free: 45.47 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005385/7.3, allocations: 109.6 kB / 4.038 GB, free: 45.47 MB / 0.5573 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.001083/7.301, allocations: 168.4 kB / 4.038 GB, free: 45.36 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002104/7.303, allocations: 0.5079 MB / 4.039 GB, free: 45.29 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009188/7.312, allocations: 5.21 MB / 4.044 GB, free: 44.94 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.961e-05/7.312, allocations: 48.08 kB / 4.044 GB, free: 44.94 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.667e-05/7.312, allocations: 0 / 4.044 GB, free: 44.94 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007205/7.319, allocations: 4.667 MB / 4.048 GB, free: 44.26 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01381/7.333, allocations: 7.681 MB / 4.056 GB, free: 43.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/7.333, allocations: 1.781 kB / 4.056 GB, free: 43.63 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001942/7.335, allocations: 365.9 kB / 4.056 GB, free: 43.62 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/7.337, allocations: 420 kB / 4.056 GB, free: 43.57 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002281/7.337, allocations: 40.27 kB / 4.057 GB, free: 43.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002569/7.34, allocations: 3.4 MB / 4.06 GB, free: 40.95 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/7.34, allocations: 4.219 kB / 4.06 GB, free: 40.95 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01124/7.351, allocations: 6.391 MB / 4.066 GB, free: 40.48 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0136/7.364, allocations: 8.882 MB / 4.075 GB, free: 39.42 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0014/7.366, allocations: 0.5444 MB / 4.075 GB, free: 39.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000597/7.367, allocations: 18.53 kB / 4.075 GB, free: 39.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002018/7.369, allocations: 161.1 kB / 4.075 GB, free: 38.95 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003583/7.369, allocations: 159.8 kB / 4.076 GB, free: 38.87 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002073/7.369, allocations: 63.53 kB / 4.076 GB, free: 38.83 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001248/7.37, allocations: 0.6787 MB / 4.076 GB, free: 38.41 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01339/7.384, allocations: 2.554 MB / 4.079 GB, free: 36.23 MB / 0.5573 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.01159/7.395, allocations: 2.149 MB / 4.081 GB, free: 34.68 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01033/7.406, allocations: 5.36 MB / 4.086 GB, free: 29.95 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/7.406, allocations: 1.031 kB / 4.086 GB, free: 29.95 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003907/7.41, allocations: 2.398 MB / 4.089 GB, free: 27.82 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003452/7.413, allocations: 0.5367 MB / 4.089 GB, free: 27.44 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01165/7.425, allocations: 5.024 MB / 4.094 GB, free: 23.08 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003039/7.428, allocations: 1.994 MB / 4.096 GB, free: 21.44 MB / 0.5573 GB Notification: Performance of SimCode: time 1.994e-06/7.428, allocations: 0 / 4.096 GB, free: 21.44 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1)