Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001638/0.001638, allocations: 170.2 kB / 8.144 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.66/1.66, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001232/0.001231, allocations: 93.42 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.255/0.255, allocations: 43.49 MB / 353.2 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.828e-06/9.919e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.285, allocations: 58.84 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.564/5.849, allocations: 2.77 GB / 3.236 GB, free: 36.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/5.849, allocations: 83.58 kB / 3.236 GB, free: 36.26 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.058/6.907, allocations: 230.5 MB / 3.461 GB, free: 26.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.735e-05/6.907, allocations: 12 kB / 3.461 GB, free: 26.89 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.006047/6.913, allocations: 1.281 MB / 3.462 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/6.913, allocations: 11.97 kB / 3.462 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003033/6.916, allocations: 263.2 kB / 3.462 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/6.918, allocations: 418.8 kB / 3.463 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.147e-05/6.918, allocations: 16 kB / 3.463 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.186e-05/6.918, allocations: 16 kB / 3.463 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009225/6.919, allocations: 341.2 kB / 3.463 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008455/6.919, allocations: 402.4 kB / 3.463 GB, free: 24.06 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/6.919, allocations: 7.984 kB / 3.463 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.055e-05/6.92, allocations: 4 kB / 3.463 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/6.92, allocations: 8 kB / 3.463 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02997/6.95, allocations: 10.07 MB / 3.473 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005196/6.95, allocations: 234.4 kB / 3.473 GB, free: 12.62 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003074/6.95, allocations: 136.8 kB / 3.474 GB, free: 12.49 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2609/7.211, allocations: 24.07 MB / 3.497 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.594e-05/7.211, allocations: 35.5 kB / 3.497 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 4.869e-06/7.211, allocations: 0 / 3.497 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.003076/7.215, allocations: 0.5436 MB / 3.498 GB, free: 129.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/7.215, allocations: 113.3 kB / 3.498 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004873/7.215, allocations: 264.9 kB / 3.498 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/7.215, allocations: 25.7 kB / 3.498 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/7.215, allocations: 242.8 kB / 3.498 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.556e-05/7.215, allocations: 81.94 kB / 3.498 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.29e-05/7.216, allocations: 3.906 kB / 3.498 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.576e-05/7.216, allocations: 321.3 kB / 3.499 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003379/7.216, allocations: 123 kB / 3.499 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000409/7.216, allocations: 222.8 kB / 3.499 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001661/7.218, allocations: 241.7 kB / 3.499 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/7.218, allocations: 0 / 3.499 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.003064/7.221, allocations: 0.6341 MB / 3.5 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002302/7.221, allocations: 1.045 MB / 3.501 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/7.221, allocations: 3.406 kB / 3.501 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.322e-05/7.222, allocations: 6.094 kB / 3.501 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008777/7.222, allocations: 113.7 kB / 3.501 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/7.222, allocations: 10.77 kB / 3.501 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006381/7.223, allocations: 57.33 kB / 3.501 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.833e-05/7.223, allocations: 20.42 kB / 3.501 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/7.223, allocations: 8.531 kB / 3.501 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001827/7.225, allocations: 395.5 kB / 3.501 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/7.225, allocations: 11.25 kB / 3.501 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.095e-06/7.225, allocations: 3.875 kB / 3.501 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007878/7.226, allocations: 110.5 kB / 3.502 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/7.226, allocations: 3.625 kB / 3.502 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005691/7.226, allocations: 61.62 kB / 3.502 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-05/7.226, allocations: 18.39 kB / 3.502 GB, free: 127.3 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.0001293/7.227, allocations: 45.17 kB / 3.502 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008268/7.227, allocations: 189.9 kB / 3.502 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003512/7.231, allocations: 1.767 MB / 3.504 GB, free: 127.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.83e-05/7.231, allocations: 23.09 kB / 3.504 GB, free: 127.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/7.231, allocations: 0 / 3.504 GB, free: 127.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/7.231, allocations: 6.016 kB / 3.504 GB, free: 127.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004577/7.236, allocations: 2.527 MB / 3.506 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/7.236, allocations: 0.9375 kB / 3.506 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006073/7.236, allocations: 85.06 kB / 3.506 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.588e-06/7.236, allocations: 0 / 3.506 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/7.236, allocations: 10.59 kB / 3.506 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/7.236, allocations: 5.938 kB / 3.506 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/7.236, allocations: 5.438 kB / 3.506 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002967/7.239, allocations: 1.467 MB / 3.508 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003523/7.24, allocations: 218.4 kB / 3.508 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/7.24, allocations: 0 / 3.508 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006674/7.241, allocations: 40.08 kB / 3.508 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/7.241, allocations: 53.19 kB / 3.508 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.793e-05/7.241, allocations: 14.47 kB / 3.508 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0004052/7.241, allocations: 269.4 kB / 3.508 GB, free: 126.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005678/7.247, allocations: 1.182 MB / 3.509 GB, free: 126.2 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.00964/7.257, allocations: 1.611 MB / 3.511 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001834/7.258, allocations: 0.9228 MB / 3.512 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/7.259, allocations: 2.438 kB / 3.512 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008962/7.259, allocations: 0.6957 MB / 3.513 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/7.261, allocations: 171.1 kB / 3.513 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/7.264, allocations: 1.186 MB / 3.514 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006337/7.264, allocations: 0.991 MB / 3.515 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.674e-06/7.264, allocations: 0 / 3.515 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.05603/7.32, allocations: 27.46 MB / 3.542 GB, free: 123.5 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestCheckValve/TestCheckValve.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches