Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 194.9 kB / 8.539 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00116/0.00116, allocations: 93.97 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2511/0.2511, allocations: 45.14 MB / 383.3 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.767e-06/8.796e-06, allocations: 0 / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1433, allocations: 63.25 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.481/5.624, allocations: 2.776 GB / 3.28 GB, free: 132 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/5.624, allocations: 85.22 kB / 3.28 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of FrontEnd: time 0.7802/6.404, allocations: 233 MB / 3.508 GB, free: 74.5 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.536e-05/6.404, allocations: 19.47 kB / 3.508 GB, free: 74.49 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.005701/6.41, allocations: 1.283 MB / 3.509 GB, free: 73.68 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/6.41, allocations: 11.53 kB / 3.509 GB, free: 73.68 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002331/6.413, allocations: 265.9 kB / 3.509 GB, free: 73.63 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007817/6.413, allocations: 419.2 kB / 3.51 GB, free: 73.33 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.289e-05/6.413, allocations: 15.06 kB / 3.51 GB, free: 73.33 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.43e-05/6.413, allocations: 18.28 kB / 3.51 GB, free: 73.33 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005701/6.414, allocations: 339 kB / 3.51 GB, free: 73.21 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005753/6.415, allocations: 403.8 kB / 3.511 GB, free: 72.99 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/6.415, allocations: 3.906 kB / 3.511 GB, free: 72.98 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.363e-05/6.415, allocations: 0 / 3.511 GB, free: 72.98 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/6.415, allocations: 7.469 kB / 3.511 GB, free: 72.98 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01925/6.434, allocations: 10.8 MB / 3.521 GB, free: 65.48 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/6.434, allocations: 225 kB / 3.521 GB, free: 65.38 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/6.434, allocations: 131.4 kB / 3.521 GB, free: 65.32 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05009/6.485, allocations: 27.19 MB / 3.548 GB, free: 46.59 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/6.485, allocations: 33.5 kB / 3.548 GB, free: 46.55 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 3.377e-06/6.485, allocations: 0 / 3.548 GB, free: 46.55 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.002235/6.487, allocations: 0.5525 MB / 3.549 GB, free: 46.37 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/6.487, allocations: 109.7 kB / 3.549 GB, free: 46.24 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003732/6.487, allocations: 264.4 kB / 3.549 GB, free: 46.09 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.214e-05/6.487, allocations: 30.77 kB / 3.549 GB, free: 46.06 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/6.487, allocations: 197.9 kB / 3.549 GB, free: 45.89 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.289e-05/6.488, allocations: 76.89 kB / 3.549 GB, free: 45.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.036e-05/6.488, allocations: 1.438 kB / 3.549 GB, free: 45.84 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.802e-05/6.488, allocations: 343.6 kB / 3.55 GB, free: 45.51 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/6.488, allocations: 118.7 kB / 3.55 GB, free: 45.46 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/6.488, allocations: 218 kB / 3.55 GB, free: 45.29 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/6.489, allocations: 246.4 kB / 3.55 GB, free: 45.21 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/6.489, allocations: 1.125 kB / 3.55 GB, free: 45.21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001955/6.491, allocations: 0.6475 MB / 3.551 GB, free: 45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002172/6.491, allocations: 1.051 MB / 3.552 GB, free: 43.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/6.491, allocations: 2.219 kB / 3.552 GB, free: 43.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/6.491, allocations: 5.438 kB / 3.552 GB, free: 43.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005251/6.492, allocations: 120 kB / 3.552 GB, free: 43.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/6.492, allocations: 4.25 kB / 3.552 GB, free: 43.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005045/6.492, allocations: 76.86 kB / 3.552 GB, free: 43.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.419e-05/6.493, allocations: 17.53 kB / 3.552 GB, free: 43.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.542e-06/6.493, allocations: 3.406 kB / 3.552 GB, free: 43.84 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001183/6.494, allocations: 392.1 kB / 3.552 GB, free: 43.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/6.494, allocations: 7.25 kB / 3.552 GB, free: 43.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/6.494, allocations: 8.703 kB / 3.552 GB, free: 43.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004523/6.494, allocations: 111.2 kB / 3.552 GB, free: 43.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/6.494, allocations: 12.7 kB / 3.552 GB, free: 43.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003888/6.495, allocations: 62.8 kB / 3.553 GB, free: 43.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.141e-05/6.495, allocations: 20.09 kB / 3.553 GB, free: 43.68 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.0001294/6.495, allocations: 113.2 kB / 3.553 GB, free: 43.56 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005754/6.495, allocations: 191.2 kB / 3.553 GB, free: 43.51 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002621/6.498, allocations: 1.773 MB / 3.555 GB, free: 42.79 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.371e-05/6.498, allocations: 16.25 kB / 3.555 GB, free: 42.79 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/6.498, allocations: 3.938 kB / 3.555 GB, free: 42.79 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/6.498, allocations: 7.281 kB / 3.555 GB, free: 42.79 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003181/6.501, allocations: 2.521 MB / 3.557 GB, free: 41.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/6.501, allocations: 0 / 3.557 GB, free: 41.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003159/6.502, allocations: 79.09 kB / 3.557 GB, free: 41.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/6.502, allocations: 5.844 kB / 3.557 GB, free: 41.59 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.618e-05/6.502, allocations: 7.406 kB / 3.557 GB, free: 41.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/6.502, allocations: 6.781 kB / 3.557 GB, free: 41.58 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/6.502, allocations: 0 / 3.557 GB, free: 41.58 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001901/6.504, allocations: 1.466 MB / 3.559 GB, free: 40.91 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000238/6.504, allocations: 221.2 kB / 3.559 GB, free: 40.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.076e-05/6.504, allocations: 7.812 kB / 3.559 GB, free: 40.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000374/6.504, allocations: 40.16 kB / 3.559 GB, free: 40.73 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/6.504, allocations: 49.44 kB / 3.559 GB, free: 40.72 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.151e-05/6.504, allocations: 12.75 kB / 3.559 GB, free: 40.72 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.000243/6.505, allocations: 272.4 kB / 3.559 GB, free: 40.57 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005447/6.51, allocations: 1.198 MB / 3.56 GB, free: 40.31 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.007999/6.518, allocations: 1.642 MB / 3.562 GB, free: 39.83 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001674/6.52, allocations: 0.9247 MB / 3.563 GB, free: 39.46 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/6.52, allocations: 5 kB / 3.563 GB, free: 39.46 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006925/6.521, allocations: 0.6976 MB / 3.564 GB, free: 38.91 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/6.522, allocations: 158 kB / 3.564 GB, free: 38.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/6.524, allocations: 1.171 MB / 3.565 GB, free: 37.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004749/6.524, allocations: 0.9897 MB / 3.566 GB, free: 36.79 MB / 0.5261 GB Notification: Performance of SimCode: time 4.61e-07/6.524, allocations: 3.938 kB / 3.566 GB, free: 36.79 MB / 0.5261 GB Notification: Performance of Templates: time 0.04451/6.569, allocations: 35.49 MB / 3.6 GB, free: 5.164 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestCheckValve/TestCheckValve.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches