Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.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: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") [: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.0008929/0.0008932, allocations: 184.5 kB / 7.803 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 0.9997/0.9997, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.0008413/0.0008412, allocations: 94.08 kB / 261.4 MB, free: 13.56 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.1523/0.1523, allocations: 43.49 MB / 352.8 MB, free: 1.973 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.601e-06/5.621e-06, allocations: 0 / 417.7 MB, free: 40.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2064, allocations: 58.84 MB / 476.6 MB, free: 5.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6399/0.8463, allocations: 474.4 MB / 0.9286 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001876/0.8466, allocations: 83.95 kB / 0.9287 GB, free: 134.4 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd: time 0.4901/1.337, allocations: 191.8 MB / 1.116 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.291e-05/1.337, allocations: 11.81 kB / 1.116 GB, free: 132.8 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001729/1.338, allocations: 1.049 MB / 1.117 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/1.338, allocations: 7.844 kB / 1.117 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001238/1.34, allocations: 183 kB / 1.117 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008003/1.341, allocations: 0.5549 MB / 1.118 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/1.341, allocations: 16.78 kB / 1.118 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.36e-05/1.341, allocations: 22.59 kB / 1.118 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005771/1.341, allocations: 456.3 kB / 1.118 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006355/1.342, allocations: 0.5408 MB / 1.119 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/1.342, allocations: 6.812 kB / 1.119 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.276e-05/1.342, allocations: 3.938 kB / 1.119 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/1.342, allocations: 10.5 kB / 1.119 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002558/1.344, allocations: 2.776 MB / 1.122 GB, free: 129.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003517/1.345, allocations: 256.1 kB / 1.122 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/1.345, allocations: 121.4 kB / 1.122 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001724/1.345, allocations: 204.6 kB / 1.122 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002374/1.345, allocations: 251.5 kB / 1.122 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 1.623e-06/1.345, allocations: 0 / 1.122 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.009471/1.355, allocations: 1.612 MB / 1.124 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/1.355, allocations: 295.8 kB / 1.124 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004889/1.355, allocations: 0.4936 MB / 1.125 GB, free: 128 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/1.356, allocations: 25.7 kB / 1.125 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/1.356, allocations: 301.8 kB / 1.125 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.672e-05/1.356, allocations: 80.61 kB / 1.125 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.819e-05/1.356, allocations: 3.719 kB / 1.125 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.419e-05/1.356, allocations: 370.2 kB / 1.125 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/1.356, allocations: 153 kB / 1.126 GB, free: 127.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002759/1.356, allocations: 366.4 kB / 1.126 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009214/1.366, allocations: 1.555 MB / 1.127 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/1.366, allocations: 2.844 kB / 1.127 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.009694/1.375, allocations: 1.895 MB / 1.129 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000331/1.376, allocations: 2.001 MB / 1.131 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/1.376, allocations: 5.594 kB / 1.131 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/1.376, allocations: 8.609 kB / 1.131 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006517/1.382, allocations: 0.624 MB / 1.132 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003301/1.386, allocations: 1.039 MB / 1.133 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006269/1.386, allocations: 64.42 kB / 1.133 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.984e-05/1.386, allocations: 50.77 kB / 1.133 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.167e-06/1.386, allocations: 7.875 kB / 1.133 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002904/1.389, allocations: 0.9107 MB / 1.134 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/1.389, allocations: 6.719 kB / 1.134 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/1.389, allocations: 8.562 kB / 1.134 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004209/1.39, allocations: 125 kB / 1.134 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/1.39, allocations: 12.95 kB / 1.134 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004538/1.39, allocations: 45.64 kB / 1.134 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.36e-05/1.39, allocations: 49.52 kB / 1.134 GB, free: 123.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001895/1.39, allocations: 161.5 kB / 1.134 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/1.391, allocations: 64.14 kB / 1.134 GB, free: 123.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003764/1.394, allocations: 0.8081 MB / 1.135 GB, free: 123.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/1.394, allocations: 2.062 kB / 1.135 GB, free: 123.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/1.394, allocations: 1.062 kB / 1.135 GB, free: 123.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/1.394, allocations: 5.875 kB / 1.135 GB, free: 123.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005554/1.395, allocations: 453.3 kB / 1.136 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/1.395, allocations: 0 / 1.136 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001829/1.397, allocations: 187.3 kB / 1.136 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/1.397, allocations: 5.312 kB / 1.136 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/1.397, allocations: 5.219 kB / 1.136 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001025/1.398, allocations: 0.7435 MB / 1.136 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.398, allocations: 3.422 kB / 1.136 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003146/1.401, allocations: 0.7195 MB / 1.137 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/1.401, allocations: 155.1 kB / 1.137 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/1.401, allocations: 7.625 kB / 1.137 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000322/1.402, allocations: 16.08 kB / 1.137 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/1.402, allocations: 22.19 kB / 1.137 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/1.402, allocations: 9.906 kB / 1.137 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003991/1.402, allocations: 402.4 kB / 1.138 GB, free: 121.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001649/1.404, allocations: 0.5978 MB / 1.138 GB, free: 121.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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001882/1.406, allocations: 1.361 MB / 1.14 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01172/1.417, allocations: 1.477 MB / 1.141 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/1.417, allocations: 1.562 kB / 1.141 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003017/1.42, allocations: 400.4 kB / 1.141 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/1.422, allocations: 204.5 kB / 1.142 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/1.423, allocations: 0.6478 MB / 1.142 GB, free: 119.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006631/1.424, allocations: 1.021 MB / 1.143 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of SimCode: time 6.81e-07/1.424, allocations: 0 / 1.143 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.0292/1.453, allocations: 21.51 MB / 1.164 GB, free: 103 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestSharpEdgedOrifice/TestSharpEdgedOrifice.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches