Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.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.TestComponents.Machines.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",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.001093/0.001093, allocations: 183.2 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.214/1.214, allocations: 221.4 MB / 230.3 MB, free: 7.664 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.0009446/0.0009445, allocations: 89.72 kB / 281.2 MB, free: 5.465 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.2052/0.2052, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2708/0.476, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.5924, allocations: 61.9 MB / 0.4942 GB, free: 1.535 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.648/5.241, allocations: 2.786 GB / 3.281 GB, free: 159 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/5.241, allocations: 84.47 kB / 3.281 GB, free: 159 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 1.247/6.488, allocations: 442.2 MB / 3.713 GB, free: 72.88 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/6.488, allocations: 12.47 kB / 3.713 GB, free: 72.88 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002815/6.491, allocations: 346.9 kB / 3.713 GB, free: 72.84 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/6.492, allocations: 0.568 MB / 3.713 GB, free: 72.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.088e-05/6.492, allocations: 27 kB / 3.713 GB, free: 72.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/6.492, allocations: 40.34 kB / 3.713 GB, free: 72.59 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008985/6.493, allocations: 0.5333 MB / 3.714 GB, free: 72.59 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008689/6.494, allocations: 0.6593 MB / 3.715 GB, free: 72.41 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/6.494, allocations: 0 / 3.715 GB, free: 72.41 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-05/6.494, allocations: 3.625 kB / 3.715 GB, free: 72.41 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.036e-05/6.494, allocations: 20.75 kB / 3.715 GB, free: 72.41 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03356/6.527, allocations: 19.53 MB / 3.734 GB, free: 60.21 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005816/6.528, allocations: 320.7 kB / 3.734 GB, free: 60.19 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003444/6.528, allocations: 209.2 kB / 3.734 GB, free: 60.18 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08856/6.617, allocations: 48.19 MB / 3.781 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/6.617, allocations: 38.72 kB / 3.781 GB, free: 29.74 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 3.537e-06/6.617, allocations: 4 kB / 3.781 GB, free: 29.73 MB / 0.5261 GB Notification: Performance of matching and sorting (n=50): time 0.006453/6.623, allocations: 1.82 MB / 3.783 GB, free: 29.32 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/6.623, allocations: 114.4 kB / 3.783 GB, free: 29.19 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005157/6.624, allocations: 388 kB / 3.784 GB, free: 29.07 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.926e-05/6.624, allocations: 25.7 kB / 3.784 GB, free: 29.04 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/6.624, allocations: 277.7 kB / 3.784 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/6.624, allocations: 166.5 kB / 3.784 GB, free: 28.75 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.676e-05/6.624, allocations: 0 / 3.784 GB, free: 28.75 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.383e-05/6.625, allocations: 361 kB / 3.784 GB, free: 28.44 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003367/6.625, allocations: 206.5 kB / 3.785 GB, free: 28.44 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004201/6.625, allocations: 376.8 kB / 3.785 GB, free: 28.25 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/6.627, allocations: 339.9 kB / 3.785 GB, free: 28.24 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/6.627, allocations: 0 / 3.785 GB, free: 28.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003341/6.63, allocations: 1.146 MB / 3.786 GB, free: 28.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003741/6.63, allocations: 1.834 MB / 3.788 GB, free: 26.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/6.63, allocations: 6.109 kB / 3.788 GB, free: 26.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/6.632, allocations: 313.3 kB / 3.788 GB, free: 26.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005097/6.632, allocations: 140.2 kB / 3.789 GB, free: 26.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/6.633, allocations: 1.015 MB / 3.79 GB, free: 25.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008174/6.634, allocations: 92.69 kB / 3.79 GB, free: 25.66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.929e-05/6.634, allocations: 33.05 kB / 3.79 GB, free: 25.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.114e-06/6.634, allocations: 3.719 kB / 3.79 GB, free: 25.66 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002027/6.636, allocations: 0.7484 MB / 3.79 GB, free: 25.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/6.636, allocations: 7.844 kB / 3.79 GB, free: 25.64 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009451/6.637, allocations: 271 kB / 3.791 GB, free: 25.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005039/6.638, allocations: 145.2 kB / 3.791 GB, free: 25.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009656/6.639, allocations: 0.9171 MB / 3.792 GB, free: 25.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006965/6.64, allocations: 80.16 kB / 3.792 GB, free: 25.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.526e-05/6.64, allocations: 41.34 kB / 3.792 GB, free: 25.07 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * 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 {4 19} Notification: Performance of prepare postOptimizeDAE: time 0.0001734/6.64, allocations: 131.8 kB / 3.792 GB, free: 24.96 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007543/6.641, allocations: 272.5 kB / 3.792 GB, free: 24.93 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002879/6.644, allocations: 2.251 MB / 3.794 GB, free: 24.69 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.426e-05/6.644, allocations: 29.31 kB / 3.794 GB, free: 24.69 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/6.644, allocations: 0 / 3.794 GB, free: 24.69 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.178e-06/6.644, allocations: 1.625 kB / 3.794 GB, free: 24.69 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004098/6.648, allocations: 3.088 MB / 3.797 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/6.648, allocations: 3.469 kB / 3.797 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005709/6.648, allocations: 136.1 kB / 3.798 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003014/6.649, allocations: 85.31 kB / 3.798 GB, free: 24.28 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.304e-05/6.649, allocations: 14.66 kB / 3.798 GB, free: 24.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007161/6.649, allocations: 1.178 MB / 3.799 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/6.649, allocations: 1.156 kB / 3.799 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003826/6.653, allocations: 2.337 MB / 3.801 GB, free: 22.89 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004441/6.658, allocations: 3.287 MB / 3.804 GB, free: 22.18 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000422/6.658, allocations: 281.3 kB / 3.805 GB, free: 22.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/6.658, allocations: 2.906 kB / 3.805 GB, free: 22.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00063/6.659, allocations: 64.14 kB / 3.805 GB, free: 22.02 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/6.659, allocations: 69.39 kB / 3.805 GB, free: 22.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-05/6.659, allocations: 23.38 kB / 3.805 GB, free: 22.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005442/6.66, allocations: 404.4 kB / 3.805 GB, free: 21.92 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007876/6.668, allocations: 1.673 MB / 3.807 GB, free: 21.72 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 15 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,pump.heatTransfer.states[1].phase,Sink.medium.phase,Source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008477/6.676, allocations: 1.898 MB / 3.809 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002403/6.679, allocations: 1.432 MB / 3.81 GB, free: 21.26 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/6.679, allocations: 1.562 kB / 3.81 GB, free: 21.26 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001159/6.68, allocations: 0.897 MB / 3.811 GB, free: 21.25 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00142/6.681, allocations: 256 kB / 3.811 GB, free: 21.24 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002673/6.684, allocations: 1.718 MB / 3.813 GB, free: 20.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005802/6.684, allocations: 1.126 MB / 3.814 GB, free: 20.09 MB / 0.5261 GB Notification: Performance of SimCode: time 2.91e-07/6.684, allocations: 0 / 3.814 GB, free: 20.09 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe 2>&1)