Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,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|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [: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.002427/0.002427, allocations: 200.3 kB / 8.541 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009406/0.0009406, allocations: 97.61 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2218/0.2218, allocations: 45.13 MB / 383.3 MB, free: 0.582 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.773e-06/6.802e-06, allocations: 0 / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1255, allocations: 63.24 MB / 0.5038 GB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.633/6.758, allocations: 2.76 GB / 3.264 GB, free: 152.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004843/6.759, allocations: 88.92 kB / 3.264 GB, free: 152.7 MB / 0.5261 GB Notification: Performance of FrontEnd: time 0.7916/7.55, allocations: 215.5 MB / 3.474 GB, free: 91.65 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.4e-05/7.55, allocations: 10.27 kB / 3.474 GB, free: 91.65 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.006102/7.556, allocations: 1.176 MB / 3.475 GB, free: 91.03 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/7.557, allocations: 11.88 kB / 3.475 GB, free: 91.03 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002231/7.559, allocations: 240.5 kB / 3.476 GB, free: 91 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/7.56, allocations: 373.1 kB / 3.476 GB, free: 90.78 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.143e-05/7.56, allocations: 14.06 kB / 3.476 GB, free: 90.78 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.447e-05/7.56, allocations: 19.53 kB / 3.476 GB, free: 90.78 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008384/7.561, allocations: 299.9 kB / 3.476 GB, free: 90.78 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007061/7.562, allocations: 382.6 kB / 3.477 GB, free: 90.64 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/7.562, allocations: 3.594 kB / 3.477 GB, free: 90.64 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.88e-05/7.562, allocations: 3.969 kB / 3.477 GB, free: 90.64 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/7.562, allocations: 7.938 kB / 3.477 GB, free: 90.64 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02101/7.583, allocations: 10.78 MB / 3.487 GB, free: 83.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003927/7.583, allocations: 224.8 kB / 3.487 GB, free: 83.48 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/7.583, allocations: 124.9 kB / 3.487 GB, free: 83.47 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04823/7.632, allocations: 27.17 MB / 3.514 GB, free: 65.89 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/7.632, allocations: 49.59 kB / 3.514 GB, free: 65.84 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 3.436e-06/7.632, allocations: 0 / 3.514 GB, free: 65.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.001728/7.633, allocations: 0.493 MB / 3.515 GB, free: 65.68 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/7.634, allocations: 110.4 kB / 3.515 GB, free: 65.55 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002935/7.634, allocations: 231.1 kB / 3.515 GB, free: 65.41 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/7.634, allocations: 25.7 kB / 3.515 GB, free: 65.38 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.891e-05/7.634, allocations: 173.6 kB / 3.515 GB, free: 65.23 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.887e-05/7.634, allocations: 82.11 kB / 3.515 GB, free: 65.18 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.614e-05/7.634, allocations: 4 kB / 3.515 GB, free: 65.17 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.681e-05/7.634, allocations: 344.5 kB / 3.515 GB, free: 64.84 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/7.634, allocations: 106 kB / 3.516 GB, free: 64.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/7.635, allocations: 197.1 kB / 3.516 GB, free: 64.64 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006918/7.635, allocations: 182.7 kB / 3.516 GB, free: 64.59 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/7.635, allocations: 3.906 kB / 3.516 GB, free: 64.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001525/7.637, allocations: 0.5715 MB / 3.517 GB, free: 64.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.98e-05/7.637, allocations: 6.125 kB / 3.517 GB, free: 64.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/7.637, allocations: 3.906 kB / 3.517 GB, free: 64.39 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/7.637, allocations: 3.5 kB / 3.517 GB, free: 64.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003685/7.637, allocations: 90.56 kB / 3.517 GB, free: 64.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/7.637, allocations: 5.781 kB / 3.517 GB, free: 64.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003594/7.638, allocations: 62.59 kB / 3.517 GB, free: 64.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/7.638, allocations: 18.42 kB / 3.517 GB, free: 64.36 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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 8.805e-05/7.638, allocations: 116.7 kB / 3.517 GB, free: 64.24 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005139/7.638, allocations: 187.4 kB / 3.517 GB, free: 64.19 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/7.64, allocations: 1.67 MB / 3.519 GB, free: 63.51 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.333e-05/7.64, allocations: 24.78 kB / 3.519 GB, free: 63.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/7.64, allocations: 5.25 kB / 3.519 GB, free: 63.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/7.64, allocations: 3.656 kB / 3.519 GB, free: 63.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002116/7.642, allocations: 2.25 MB / 3.521 GB, free: 62.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/7.642, allocations: 3.906 kB / 3.521 GB, free: 62.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/7.643, allocations: 73.72 kB / 3.521 GB, free: 62.42 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/7.643, allocations: 0 / 3.521 GB, free: 62.42 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.49e-05/7.643, allocations: 7.688 kB / 3.521 GB, free: 62.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/7.643, allocations: 3.844 kB / 3.521 GB, free: 62.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/7.643, allocations: 3.328 kB / 3.521 GB, free: 62.41 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001664/7.644, allocations: 1.392 MB / 3.522 GB, free: 61.79 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/7.644, allocations: 153.2 kB / 3.522 GB, free: 61.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.03e-05/7.645, allocations: 3.562 kB / 3.522 GB, free: 61.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003412/7.645, allocations: 37.81 kB / 3.522 GB, free: 61.64 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.057e-05/7.645, allocations: 44.23 kB / 3.523 GB, free: 61.63 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/7.645, allocations: 11.06 kB / 3.523 GB, free: 61.63 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.000201/7.645, allocations: 236 kB / 3.523 GB, free: 61.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004883/7.65, allocations: 1.026 MB / 3.524 GB, free: 61.29 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SinkP1.medium.phase,Opening.y,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * 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.00506/7.655, allocations: 1.51 MB / 3.525 GB, free: 60.89 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0007711/7.656, allocations: 0.7085 MB / 3.526 GB, free: 60.61 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/7.656, allocations: 0 / 3.526 GB, free: 60.61 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005014/7.656, allocations: 0.6795 MB / 3.527 GB, free: 60.26 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008849/7.657, allocations: 145.6 kB / 3.527 GB, free: 60.23 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/7.659, allocations: 1.081 MB / 3.528 GB, free: 59.72 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005038/7.659, allocations: 0.9742 MB / 3.529 GB, free: 59 MB / 0.5261 GB Notification: Performance of SimCode: time 2.81e-07/7.659, allocations: 0 / 3.529 GB, free: 59 MB / 0.5261 GB Notification: Performance of Templates: time 0.04787/7.707, allocations: 31.76 MB / 3.56 GB, free: 56.7 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches