Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.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: translateModel(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|pipe1.port_a.p|pipe1.port_b.p|pipe1.port_b.m_flow|pipe1.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") translateModel(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|pipe1.port_a.p|pipe1.port_b.p|pipe1.port_b.m_flow|pipe1.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") [: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.001059/0.001059, allocations: 178.6 kB / 8.52 MB, free: 1.84 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.363/1.363, allocations: 221.4 MB / 230.3 MB, free: 7.645 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.001033/0.001034, allocations: 89.86 kB / 281.2 MB, free: 5.457 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.2073/0.2073, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.175e-06/8.205e-06, allocations: 0 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.143, allocations: 61.91 MB / 0.4941 GB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8672/1.01, allocations: 316.7 MB / 0.8034 GB, free: 72.46 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/1.011, allocations: 85.52 kB / 0.8035 GB, free: 72.42 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.49/1.501, allocations: 99.24 MB / 0.9004 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.302e-05/1.501, allocations: 15.69 kB / 0.9004 GB, free: 140.1 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001742/1.502, allocations: 0.8176 MB / 0.9012 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/1.502, allocations: 10.84 kB / 0.9012 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002678/1.503, allocations: 62.19 kB / 0.9012 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008377/1.504, allocations: 473 kB / 0.9017 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/1.504, allocations: 10.81 kB / 0.9017 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.702e-05/1.504, allocations: 18.56 kB / 0.9017 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006051/1.504, allocations: 401.6 kB / 0.9021 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006162/1.505, allocations: 489.2 kB / 0.9026 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/1.505, allocations: 4.344 kB / 0.9026 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.355e-05/1.505, allocations: 3.969 kB / 0.9026 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.959e-05/1.505, allocations: 30.03 kB / 0.9026 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002752/1.508, allocations: 2.192 MB / 0.9048 GB, free: 138 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/1.508, allocations: 223.8 kB / 0.905 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/1.508, allocations: 123 kB / 0.9051 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001034/1.509, allocations: 1.044 MB / 0.9061 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002257/1.51, allocations: 200.6 kB / 0.9063 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=18): time 1.613e-06/1.51, allocations: 0 / 0.9063 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=18): time 0.0006693/1.51, allocations: 253 kB / 0.9065 GB, free: 137 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.692e-05/1.51, allocations: 241.7 kB / 0.9068 GB, free: 136.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000379/1.511, allocations: 372.8 kB / 0.9071 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/1.511, allocations: 29.27 kB / 0.9072 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/1.511, allocations: 241.6 kB / 0.9074 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.098e-05/1.511, allocations: 57.12 kB / 0.9074 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-05/1.511, allocations: 0 / 0.9074 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.049e-05/1.511, allocations: 350.9 kB / 0.9078 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/1.511, allocations: 122.4 kB / 0.9079 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/1.512, allocations: 290.3 kB / 0.9082 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008134/1.512, allocations: 322.2 kB / 0.9085 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/1.512, allocations: 0 / 0.9085 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001121/1.513, allocations: 0.5578 MB / 0.909 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003378/1.514, allocations: 1.665 MB / 0.9106 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/1.514, allocations: 7.469 kB / 0.9106 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/1.514, allocations: 7.812 kB / 0.9107 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003028/1.514, allocations: 79.3 kB / 0.9107 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/1.514, allocations: 7.844 kB / 0.9107 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003815/1.515, allocations: 45.39 kB / 0.9108 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.279e-05/1.515, allocations: 27.58 kB / 0.9108 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.141e-06/1.515, allocations: 3.844 kB / 0.9108 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009257/1.516, allocations: 467.2 kB / 0.9113 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/1.516, allocations: 3.75 kB / 0.9113 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.142e-06/1.516, allocations: 7.844 kB / 0.9113 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002602/1.516, allocations: 84.91 kB / 0.9114 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/1.516, allocations: 6.938 kB / 0.9114 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/1.516, allocations: 35.11 kB / 0.9114 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/1.516, allocations: 25.64 kB / 0.9114 GB, free: 134.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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.000136/1.516, allocations: 154 kB / 0.9116 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.293e-05/1.516, allocations: 43.06 kB / 0.9116 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006388/1.517, allocations: 297.2 kB / 0.9119 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/1.517, allocations: 0 / 0.9119 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/1.517, allocations: 0 / 0.9119 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/1.517, allocations: 0 / 0.9119 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003421/1.518, allocations: 366.8 kB / 0.9122 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/1.518, allocations: 3.469 kB / 0.9122 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/1.518, allocations: 22.03 kB / 0.9123 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/1.518, allocations: 0 / 0.9123 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.344e-05/1.518, allocations: 11.47 kB / 0.9123 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/1.518, allocations: 7.469 kB / 0.9123 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.518, allocations: 7.25 kB / 0.9123 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004851/1.518, allocations: 288.5 kB / 0.9126 GB, free: 133.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 9.77e-05/1.518, allocations: 128 kB / 0.9127 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.881e-05/1.518, allocations: 3.938 kB / 0.9127 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000251/1.519, allocations: 25.39 kB / 0.9127 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.572e-05/1.519, allocations: 13.66 kB / 0.9127 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/1.519, allocations: 7.906 kB / 0.9127 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002569/1.519, allocations: 288.7 kB / 0.913 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001429/1.52, allocations: 465.5 kB / 0.9135 GB, free: 133.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001059/1.522, allocations: 0.5083 MB / 0.9139 GB, free: 133.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0007283/1.522, allocations: 0.5183 MB / 0.9145 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/1.522, allocations: 3.875 kB / 0.9145 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001404/1.522, allocations: 143.3 kB / 0.9146 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006991/1.523, allocations: 145.9 kB / 0.9147 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/1.524, allocations: 0.5169 MB / 0.9152 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00037/1.525, allocations: 0.9033 MB / 0.9161 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of SimCode: time 2.71e-07/1.525, allocations: 0 / 0.9161 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.01943/1.544, allocations: 12.11 MB / 0.9279 GB, free: 131.8 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Pipes/StaticPipe/StaticPipe.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches