Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.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.TestComponents.Machines.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001886/0.001886, allocations: 185 kB / 7.801 MB, free: 2.445 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.617/1.617, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0009858/0.0009856, allocations: 95.42 kB / 261.4 MB, free: 13.54 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.2198/0.2198, allocations: 43.49 MB / 352.9 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2471/0.4669, allocations: 64.97 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.8488, allocations: 58.83 MB / 476.7 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.759/6.608, allocations: 2.781 GB / 3.246 GB, free: 92.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003874/6.609, allocations: 91.33 kB / 3.246 GB, free: 92.32 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.971/8.579, allocations: 438 MB / 3.674 GB, free: 55.52 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 8.296e-05/8.58, allocations: 8.156 kB / 3.674 GB, free: 55.52 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005018/8.585, allocations: 343.7 kB / 3.674 GB, free: 55.46 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002463/8.587, allocations: 0.565 MB / 3.675 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/8.587, allocations: 28.5 kB / 3.675 GB, free: 55.08 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002782/8.588, allocations: 36.61 kB / 3.675 GB, free: 55.08 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002109/8.59, allocations: 0.5457 MB / 3.676 GB, free: 54.89 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002172/8.592, allocations: 0.6539 MB / 3.676 GB, free: 54.53 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.489e-05/8.592, allocations: 4.375 kB / 3.676 GB, free: 54.53 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001397/8.592, allocations: 2.469 kB / 3.676 GB, free: 54.53 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.75e-05/8.592, allocations: 24.67 kB / 3.676 GB, free: 54.53 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06105/8.653, allocations: 19.54 MB / 3.695 GB, free: 41.32 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009272/8.654, allocations: 330.4 kB / 3.696 GB, free: 41.19 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005455/8.655, allocations: 215.3 kB / 3.696 GB, free: 41.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4647/9.119, allocations: 48.18 MB / 3.743 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.237e-05/9.12, allocations: 41.34 kB / 3.743 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=46): time 3.316e-06/9.12, allocations: 0 / 3.743 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=50): time 0.007362/9.127, allocations: 1.849 MB / 3.745 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/9.127, allocations: 109.8 kB / 3.745 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004829/9.128, allocations: 397.3 kB / 3.745 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.332e-05/9.128, allocations: 25.7 kB / 3.745 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/9.128, allocations: 275.8 kB / 3.746 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/9.128, allocations: 165.8 kB / 3.746 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.321e-05/9.128, allocations: 0 / 3.746 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001116/9.128, allocations: 361.2 kB / 3.746 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003222/9.128, allocations: 215 kB / 3.746 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004109/9.129, allocations: 379 kB / 3.747 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/9.13, allocations: 345.2 kB / 3.747 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/9.13, allocations: 7.766 kB / 3.747 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003491/9.134, allocations: 1.15 MB / 3.748 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006366/9.134, allocations: 1.841 MB / 3.75 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/9.134, allocations: 11.06 kB / 3.75 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001356/9.136, allocations: 311.9 kB / 3.75 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000556/9.136, allocations: 138.9 kB / 3.75 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001733/9.138, allocations: 1.042 MB / 3.751 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/9.139, allocations: 92.52 kB / 3.751 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.515e-05/9.139, allocations: 35.14 kB / 3.751 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/9.139, allocations: 3.938 kB / 3.751 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002618/9.142, allocations: 0.7787 MB / 3.752 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/9.142, allocations: 7.438 kB / 3.752 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001318/9.143, allocations: 283.9 kB / 3.753 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005285/9.144, allocations: 149 kB / 3.753 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/9.145, allocations: 0.9098 MB / 3.754 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/9.146, allocations: 81.89 kB / 3.754 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.22e-05/9.146, allocations: 36.34 kB / 3.754 GB, free: 105.7 MB / 0.5105 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.0003129/9.147, allocations: 122.8 kB / 3.754 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008363/9.148, allocations: 272.3 kB / 3.754 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003365/9.151, allocations: 2.259 MB / 3.756 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.784e-05/9.151, allocations: 22.78 kB / 3.756 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/9.151, allocations: 3.688 kB / 3.756 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/9.151, allocations: 0 / 3.756 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004756/9.156, allocations: 3.086 MB / 3.759 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/9.156, allocations: 8.156 kB / 3.759 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005925/9.156, allocations: 137.6 kB / 3.759 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003705/9.157, allocations: 94.89 kB / 3.76 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.896e-05/9.157, allocations: 14.41 kB / 3.76 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/9.158, allocations: 1.173 MB / 3.761 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/9.158, allocations: 0 / 3.761 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004078/9.162, allocations: 2.334 MB / 3.763 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005104/9.167, allocations: 3.281 MB / 3.766 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006446/9.168, allocations: 286.8 kB / 3.766 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/9.168, allocations: 0 / 3.766 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007689/9.169, allocations: 66.28 kB / 3.767 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/9.169, allocations: 70.05 kB / 3.767 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.635e-05/9.169, allocations: 30.86 kB / 3.767 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0006367/9.17, allocations: 403.3 kB / 3.767 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009898/9.18, allocations: 1.665 MB / 3.769 GB, free: 102.6 MB / 0.5105 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.01163/9.191, allocations: 1.873 MB / 3.77 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003227/9.195, allocations: 1.424 MB / 3.772 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/9.195, allocations: 0 / 3.772 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001304/9.196, allocations: 0.8979 MB / 3.773 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/9.198, allocations: 259.7 kB / 3.773 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00314/9.201, allocations: 1.705 MB / 3.775 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007496/9.202, allocations: 1.144 MB / 3.776 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of SimCode: time 5.21e-07/9.202, allocations: 0 / 3.776 GB, free: 101.4 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe 2>&1)