Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.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.TestWaterPumpNPSH,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH",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.001068/0.001068, allocations: 179.8 kB / 8.517 MB, free: 1.848 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.179/1.179, allocations: 221.4 MB / 230.3 MB, free: 7.723 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.0008877/0.0008877, allocations: 88.67 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.1633/0.1633, allocations: 44.15 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1911/0.3544, allocations: 68.04 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.459, allocations: 61.91 MB / 0.4942 GB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.584/5.043, allocations: 2.791 GB / 3.286 GB, free: 158.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/5.044, allocations: 89.59 kB / 3.286 GB, free: 158.3 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 1.407/6.45, allocations: 442.9 MB / 3.718 GB, free: 72.51 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/6.45, allocations: 16.72 kB / 3.718 GB, free: 72.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003073/6.454, allocations: 366.6 kB / 3.719 GB, free: 72.46 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00135/6.455, allocations: 0.5751 MB / 3.719 GB, free: 72.22 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.092e-05/6.455, allocations: 26.88 kB / 3.719 GB, free: 72.22 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/6.455, allocations: 32.72 kB / 3.719 GB, free: 72.22 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00109/6.456, allocations: 0.5628 MB / 3.72 GB, free: 72.21 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/6.457, allocations: 0.6716 MB / 3.72 GB, free: 72.02 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/6.457, allocations: 1.969 kB / 3.72 GB, free: 72.02 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-05/6.457, allocations: 7.578 kB / 3.72 GB, free: 72.02 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.759e-05/6.457, allocations: 20.28 kB / 3.72 GB, free: 72.02 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07723/6.535, allocations: 44.51 MB / 3.764 GB, free: 44.37 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004342/6.535, allocations: 323.8 kB / 3.764 GB, free: 44.34 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/6.535, allocations: 203.2 kB / 3.764 GB, free: 44.33 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04575/6.581, allocations: 24.21 MB / 3.788 GB, free: 28.58 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.099e-05/6.581, allocations: 41.22 kB / 3.788 GB, free: 28.54 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 2.685e-06/6.581, allocations: 0 / 3.788 GB, free: 28.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42): time 0.00291/6.584, allocations: 0.8235 MB / 3.789 GB, free: 28.46 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/6.584, allocations: 110.4 kB / 3.789 GB, free: 28.34 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005253/6.585, allocations: 411.9 kB / 3.789 GB, free: 28.21 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/6.585, allocations: 28.11 kB / 3.789 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/6.585, allocations: 289 kB / 3.79 GB, free: 27.99 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.61e-05/6.585, allocations: 145.1 kB / 3.79 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.087e-05/6.585, allocations: 4 kB / 3.79 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.504e-05/6.585, allocations: 358.3 kB / 3.79 GB, free: 27.58 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/6.586, allocations: 202.5 kB / 3.79 GB, free: 27.58 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004008/6.586, allocations: 372.2 kB / 3.791 GB, free: 27.38 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/6.587, allocations: 341.9 kB / 3.791 GB, free: 27.36 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/6.587, allocations: 3.875 kB / 3.791 GB, free: 27.36 MB / 0.5261 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002751/6.59, allocations: 1.044 MB / 3.792 GB, free: 27.28 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000354/6.59, allocations: 2.009 MB / 3.794 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/6.59, allocations: 6.203 kB / 3.794 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007891/6.591, allocations: 182.3 kB / 3.794 GB, free: 25.17 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005372/6.592, allocations: 152.7 kB / 3.794 GB, free: 25.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/6.593, allocations: 0.8936 MB / 3.795 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008941/6.594, allocations: 128.8 kB / 3.795 GB, free: 24.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-05/6.594, allocations: 34.89 kB / 3.795 GB, free: 24.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.756e-06/6.594, allocations: 5.938 kB / 3.795 GB, free: 24.6 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002546/6.597, allocations: 0.7639 MB / 3.796 GB, free: 24.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/6.597, allocations: 3.938 kB / 3.796 GB, free: 24.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008424/6.598, allocations: 168.8 kB / 3.796 GB, free: 24.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005205/6.598, allocations: 154 kB / 3.796 GB, free: 24.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007448/6.599, allocations: 0.7808 MB / 3.797 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007192/6.6, allocations: 103 kB / 3.797 GB, free: 23.99 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.483e-05/6.6, allocations: 31.75 kB / 3.797 GB, free: 23.99 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 (Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.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 (58): * Single equations (assignments): 57 * 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 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001862/6.6, allocations: 133.6 kB / 3.797 GB, free: 23.88 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007893/6.601, allocations: 267.7 kB / 3.798 GB, free: 23.85 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/6.604, allocations: 2.55 MB / 3.8 GB, free: 23.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.963e-05/6.604, allocations: 28.36 kB / 3.8 GB, free: 23.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/6.604, allocations: 1.281 kB / 3.8 GB, free: 23.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/6.604, allocations: 3.703 kB / 3.8 GB, free: 23.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004668/6.609, allocations: 3.214 MB / 3.803 GB, free: 23.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/6.609, allocations: 5.5 kB / 3.803 GB, free: 23.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003126/6.61, allocations: 70.27 kB / 3.803 GB, free: 23.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001334/6.611, allocations: 0.6667 MB / 3.804 GB, free: 23.13 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/6.611, allocations: 6.031 kB / 3.804 GB, free: 23.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001536/6.612, allocations: 1.266 MB / 3.805 GB, free: 22.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/6.612, allocations: 1.375 kB / 3.805 GB, free: 22.59 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003264/6.616, allocations: 1.983 MB / 3.807 GB, free: 22.25 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003343/6.619, allocations: 2.454 MB / 3.81 GB, free: 21.54 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000411/6.62, allocations: 280.7 kB / 3.81 GB, free: 21.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/6.62, allocations: 1.656 kB / 3.81 GB, free: 21.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005817/6.62, allocations: 63.52 kB / 3.81 GB, free: 21.37 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.866e-05/6.62, allocations: 47.14 kB / 3.81 GB, free: 21.37 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.207e-05/6.62, allocations: 22.53 kB / 3.81 GB, free: 21.37 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005075/6.621, allocations: 386.3 kB / 3.81 GB, free: 21.28 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008076/6.629, allocations: 1.713 MB / 3.812 GB, free: 21.04 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.009965/6.639, allocations: 1.879 MB / 3.814 GB, free: 20.63 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002737/6.642, allocations: 1.35 MB / 3.815 GB, free: 20.61 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/6.642, allocations: 3.719 kB / 3.815 GB, free: 20.61 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001139/6.643, allocations: 0.918 MB / 3.816 GB, free: 20.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/6.645, allocations: 249.5 kB / 3.816 GB, free: 20.58 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003242/6.648, allocations: 1.591 MB / 3.818 GB, free: 20.23 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000969/6.649, allocations: 1.127 MB / 3.819 GB, free: 19.5 MB / 0.5261 GB Notification: Performance of SimCode: time 7.01e-07/6.649, allocations: 0 / 3.819 GB, free: 19.5 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe 2>&1)