Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001236/0.001236, allocations: 185.5 kB / 7.806 MB, free: 2.488 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.725/1.725, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.001423/0.001423, allocations: 99.67 kB / 261.4 MB, free: 13.53 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.2931/0.2931, allocations: 43.49 MB / 352.9 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2915/0.5847, allocations: 64.97 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4521/1.037, allocations: 58.84 MB / 476.7 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.38/7.417, allocations: 2.77 GB / 3.236 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/7.417, allocations: 79.12 kB / 3.236 GB, free: 117.5 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.8738/8.291, allocations: 231.8 MB / 3.462 GB, free: 81.43 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/8.291, allocations: 9.031 kB / 3.462 GB, free: 81.43 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002585/8.294, allocations: 263.5 kB / 3.462 GB, free: 81.39 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/8.295, allocations: 417.7 kB / 3.463 GB, free: 81.08 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.645e-05/8.295, allocations: 15.62 kB / 3.463 GB, free: 81.08 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/8.295, allocations: 17.66 kB / 3.463 GB, free: 81.08 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009361/8.296, allocations: 341.1 kB / 3.463 GB, free: 80.96 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009591/8.297, allocations: 409.8 kB / 3.464 GB, free: 80.73 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/8.297, allocations: 1.188 kB / 3.464 GB, free: 80.73 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.822e-05/8.297, allocations: 5.219 kB / 3.464 GB, free: 80.73 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.913e-05/8.297, allocations: 7.562 kB / 3.464 GB, free: 80.73 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02274/8.32, allocations: 10.09 MB / 3.473 GB, free: 73.79 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004484/8.321, allocations: 221.1 kB / 3.474 GB, free: 73.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002455/8.321, allocations: 132.3 kB / 3.474 GB, free: 73.64 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05392/8.375, allocations: 24.09 MB / 3.497 GB, free: 54.62 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.03e-05/8.375, allocations: 34.56 kB / 3.497 GB, free: 54.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 3.927e-06/8.375, allocations: 0 / 3.497 GB, free: 54.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.002771/8.378, allocations: 0.5417 MB / 3.498 GB, free: 54.14 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.082e-05/8.378, allocations: 107.3 kB / 3.498 GB, free: 54.01 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005257/8.378, allocations: 267.2 kB / 3.498 GB, free: 53.77 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.757e-05/8.378, allocations: 29.7 kB / 3.498 GB, free: 53.73 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/8.378, allocations: 189 kB / 3.498 GB, free: 53.56 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.894e-05/8.379, allocations: 89.23 kB / 3.498 GB, free: 53.48 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.322e-05/8.379, allocations: 0 / 3.498 GB, free: 53.48 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001107/8.379, allocations: 340.5 kB / 3.499 GB, free: 53.14 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002319/8.379, allocations: 127.1 kB / 3.499 GB, free: 53.03 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002711/8.379, allocations: 224.2 kB / 3.499 GB, free: 52.78 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/8.38, allocations: 247.2 kB / 3.499 GB, free: 52.59 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/8.38, allocations: 0 / 3.499 GB, free: 52.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.002055/8.383, allocations: 0.6452 MB / 3.5 GB, free: 52.07 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003185/8.383, allocations: 1.047 MB / 3.501 GB, free: 50.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/8.383, allocations: 7.047 kB / 3.501 GB, free: 50.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.732e-05/8.383, allocations: 4 kB / 3.501 GB, free: 50.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005321/8.383, allocations: 111.2 kB / 3.501 GB, free: 50.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/8.384, allocations: 11.08 kB / 3.501 GB, free: 50.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005984/8.384, allocations: 69.16 kB / 3.501 GB, free: 50.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.321e-05/8.384, allocations: 19.23 kB / 3.501 GB, free: 50.76 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/8.384, allocations: 11.94 kB / 3.501 GB, free: 50.75 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001272/8.385, allocations: 392.1 kB / 3.502 GB, free: 50.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/8.385, allocations: 4 kB / 3.502 GB, free: 50.42 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.506e-06/8.386, allocations: 4 kB / 3.502 GB, free: 50.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004833/8.386, allocations: 121.3 kB / 3.502 GB, free: 50.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/8.386, allocations: 4.75 kB / 3.502 GB, free: 50.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005227/8.387, allocations: 60.17 kB / 3.502 GB, free: 50.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.581e-05/8.387, allocations: 23.98 kB / 3.502 GB, free: 50.23 MB / 0.5105 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.0001834/8.387, allocations: 120.8 kB / 3.502 GB, free: 50.11 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006793/8.387, allocations: 195.3 kB / 3.502 GB, free: 49.92 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002686/8.39, allocations: 1.758 MB / 3.504 GB, free: 48.14 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.218e-05/8.39, allocations: 27.95 kB / 3.504 GB, free: 48.11 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/8.39, allocations: 0 / 3.504 GB, free: 48.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/8.39, allocations: 0 / 3.504 GB, free: 48.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003701/8.394, allocations: 2.518 MB / 3.506 GB, free: 45.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/8.394, allocations: 0 / 3.506 GB, free: 45.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003537/8.394, allocations: 87.97 kB / 3.506 GB, free: 45.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/8.394, allocations: 0 / 3.506 GB, free: 45.45 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.506e-05/8.394, allocations: 8 kB / 3.506 GB, free: 45.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/8.394, allocations: 0 / 3.506 GB, free: 45.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-05/8.394, allocations: 11.89 kB / 3.506 GB, free: 45.43 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002058/8.397, allocations: 1.459 MB / 3.508 GB, free: 43.92 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0022/8.399, allocations: 1.896 MB / 3.51 GB, free: 41.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003047/8.399, allocations: 212 kB / 3.51 GB, free: 41.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/8.399, allocations: 0 / 3.51 GB, free: 41.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004406/8.4, allocations: 43.97 kB / 3.51 GB, free: 41.71 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/8.4, allocations: 51.81 kB / 3.51 GB, free: 41.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-05/8.4, allocations: 16 kB / 3.51 GB, free: 41.64 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002781/8.4, allocations: 259.2 kB / 3.51 GB, free: 41.39 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008913/8.409, allocations: 1.405 MB / 3.512 GB, free: 39.98 MB / 0.5105 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.01013/8.419, allocations: 1.632 MB / 3.513 GB, free: 38.44 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001706/8.421, allocations: 0.9278 MB / 3.514 GB, free: 37.51 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/8.421, allocations: 0 / 3.514 GB, free: 37.51 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0007013/8.422, allocations: 0.696 MB / 3.515 GB, free: 36.82 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/8.423, allocations: 166 kB / 3.515 GB, free: 36.66 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/8.425, allocations: 1.168 MB / 3.516 GB, free: 35.45 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006878/8.426, allocations: 0.9861 MB / 3.517 GB, free: 34.44 MB / 0.5105 GB Notification: Performance of SimCode: time 4e-07/8.426, allocations: 0 / 3.517 GB, free: 34.44 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1)