Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",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.001041/0.001041, allocations: 178.1 kB / 8.52 MB, free: 1.832 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.205/1.205, allocations: 221.4 MB / 230.3 MB, free: 7.672 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.0009541/0.000954, allocations: 93.89 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.1571/0.1571, allocations: 44.15 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1839/0.341, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0964/0.4374, allocations: 61.91 MB / 0.4942 GB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.252/4.689, allocations: 2.775 GB / 3.27 GB, free: 163.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/4.689, allocations: 87.2 kB / 3.27 GB, free: 163.8 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.7149/5.404, allocations: 234.3 MB / 3.498 GB, free: 92.08 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/5.404, allocations: 14.78 kB / 3.498 GB, free: 92.08 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002197/5.407, allocations: 263.8 kB / 3.499 GB, free: 92.05 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008057/5.407, allocations: 412.3 kB / 3.499 GB, free: 91.84 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.51e-05/5.408, allocations: 17.06 kB / 3.499 GB, free: 91.84 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.499e-05/5.408, allocations: 18.97 kB / 3.499 GB, free: 91.84 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005757/5.408, allocations: 340.5 kB / 3.499 GB, free: 91.84 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000561/5.409, allocations: 404.2 kB / 3.5 GB, free: 91.72 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/5.409, allocations: 3.906 kB / 3.5 GB, free: 91.72 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.449e-05/5.409, allocations: 6.781 kB / 3.5 GB, free: 91.72 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/5.409, allocations: 7.75 kB / 3.5 GB, free: 91.72 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01791/5.427, allocations: 10.09 MB / 3.51 GB, free: 85.41 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003549/5.427, allocations: 224.9 kB / 3.51 GB, free: 85.39 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000187/5.427, allocations: 132.2 kB / 3.51 GB, free: 85.38 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04581/5.473, allocations: 24.07 MB / 3.534 GB, free: 70.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.029e-05/5.473, allocations: 36.59 kB / 3.534 GB, free: 70.66 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 2.966e-06/5.473, allocations: 3.312 kB / 3.534 GB, free: 70.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.002247/5.476, allocations: 0.5502 MB / 3.534 GB, free: 70.61 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/5.476, allocations: 102.8 kB / 3.534 GB, free: 70.49 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003596/5.476, allocations: 266.6 kB / 3.534 GB, free: 70.39 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.421e-05/5.476, allocations: 35.34 kB / 3.535 GB, free: 70.36 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.425e-05/5.476, allocations: 191.2 kB / 3.535 GB, free: 70.24 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.345e-05/5.476, allocations: 77.84 kB / 3.535 GB, free: 70.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.14e-05/5.476, allocations: 2.969 kB / 3.535 GB, free: 70.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.928e-05/5.476, allocations: 340.2 kB / 3.535 GB, free: 69.89 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001861/5.477, allocations: 126.1 kB / 3.535 GB, free: 69.89 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/5.477, allocations: 221.9 kB / 3.535 GB, free: 69.78 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009899/5.478, allocations: 238.7 kB / 3.536 GB, free: 69.77 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/5.478, allocations: 0 / 3.536 GB, free: 69.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001903/5.48, allocations: 0.6557 MB / 3.536 GB, free: 69.71 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002015/5.48, allocations: 1.048 MB / 3.537 GB, free: 68.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/5.48, allocations: 6.969 kB / 3.537 GB, free: 68.63 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/5.48, allocations: 3.719 kB / 3.537 GB, free: 68.63 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004911/5.48, allocations: 111 kB / 3.537 GB, free: 68.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/5.48, allocations: 17.23 kB / 3.537 GB, free: 68.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000495/5.481, allocations: 69 kB / 3.538 GB, free: 68.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/5.481, allocations: 23.41 kB / 3.538 GB, free: 68.62 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/5.481, allocations: 5.5 kB / 3.538 GB, free: 68.62 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00112/5.482, allocations: 394.2 kB / 3.538 GB, free: 68.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/5.482, allocations: 3.75 kB / 3.538 GB, free: 68.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.994e-06/5.482, allocations: 3.969 kB / 3.538 GB, free: 68.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004222/5.483, allocations: 118.2 kB / 3.538 GB, free: 68.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/5.483, allocations: 3.906 kB / 3.538 GB, free: 68.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003989/5.483, allocations: 59.69 kB / 3.538 GB, free: 68.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/5.483, allocations: 19.45 kB / 3.538 GB, free: 68.61 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001116/5.483, allocations: 120.8 kB / 3.538 GB, free: 68.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000555/5.484, allocations: 188.4 kB / 3.538 GB, free: 68.48 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002199/5.486, allocations: 1.775 MB / 3.54 GB, free: 68.32 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.54e-05/5.486, allocations: 21.33 kB / 3.54 GB, free: 68.32 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/5.486, allocations: 0 / 3.54 GB, free: 68.32 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/5.486, allocations: 7.516 kB / 3.54 GB, free: 68.32 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/5.489, allocations: 2.52 MB / 3.543 GB, free: 67.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/5.489, allocations: 3.938 kB / 3.543 GB, free: 67.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003396/5.489, allocations: 78.8 kB / 3.543 GB, free: 67.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/5.489, allocations: 0 / 3.543 GB, free: 67.89 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/5.489, allocations: 15.55 kB / 3.543 GB, free: 67.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/5.489, allocations: 9.625 kB / 3.543 GB, free: 67.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/5.489, allocations: 3.906 kB / 3.543 GB, free: 67.89 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00191/5.491, allocations: 1.463 MB / 3.544 GB, free: 67.61 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002026/5.493, allocations: 1.883 MB / 3.546 GB, free: 66.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002402/5.494, allocations: 219.2 kB / 3.546 GB, free: 66.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.849e-05/5.494, allocations: 3.656 kB / 3.546 GB, free: 66.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003945/5.494, allocations: 41.47 kB / 3.546 GB, free: 66.85 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.291e-05/5.494, allocations: 39.36 kB / 3.546 GB, free: 66.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/5.494, allocations: 22.22 kB / 3.546 GB, free: 66.84 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002369/5.495, allocations: 262.6 kB / 3.547 GB, free: 66.76 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007047/5.502, allocations: 1.412 MB / 3.548 GB, free: 66.57 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008702/5.51, allocations: 1.619 MB / 3.55 GB, free: 66.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001315/5.512, allocations: 0.9287 MB / 3.55 GB, free: 66.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/5.512, allocations: 0 / 3.55 GB, free: 66.28 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005949/5.512, allocations: 0.6975 MB / 3.551 GB, free: 66.28 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/5.513, allocations: 165.2 kB / 3.551 GB, free: 66.27 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/5.515, allocations: 1.18 MB / 3.552 GB, free: 66 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005005/5.516, allocations: 0.9913 MB / 3.553 GB, free: 65.29 MB / 0.5261 GB Notification: Performance of SimCode: time 1.112e-06/5.516, allocations: 0 / 3.553 GB, free: 65.29 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1)