Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") [: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.0009594/0.0009596, allocations: 186.3 kB / 7.805 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 1.005/1.005, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0008021/0.0008021, allocations: 82.91 kB / 261.4 MB, free: 13.55 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.1498/0.1498, allocations: 43.49 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.29e-06/5.31e-06, allocations: 0 / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2095, allocations: 58.83 MB / 476.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3874/0.5969, allocations: 288.2 MB / 0.7469 GB, free: 46.53 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002/0.5972, allocations: 83.5 kB / 0.7469 GB, free: 46.48 MB / 474.7 MB [/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.3451/0.9423, allocations: 116.8 MB / 0.861 GB, free: 146.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.279e-05/0.9423, allocations: 22.12 kB / 0.861 GB, free: 146.2 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001098/0.9434, allocations: 0.8669 MB / 0.8619 GB, free: 145.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.9435, allocations: 11.06 kB / 0.8619 GB, free: 145.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003141/0.9438, allocations: 81.58 kB / 0.862 GB, free: 145.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008105/0.9446, allocations: 0.522 MB / 0.8625 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.9446, allocations: 15.66 kB / 0.8625 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.049e-05/0.9447, allocations: 31.8 kB / 0.8625 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005862/0.9453, allocations: 477.4 kB / 0.863 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000663/0.946, allocations: 0.5893 MB / 0.8635 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.946, allocations: 7.031 kB / 0.8635 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.937e-05/0.946, allocations: 3.75 kB / 0.8636 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.9461, allocations: 10.28 kB / 0.8636 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002477/0.9485, allocations: 2.974 MB / 0.8665 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002394/0.9488, allocations: 196.3 kB / 0.8667 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.949, allocations: 127.5 kB / 0.8668 GB, free: 143.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001777/0.9491, allocations: 346.7 kB / 0.8671 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.9494, allocations: 263.3 kB / 0.8674 GB, free: 142.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 3.095e-06/0.9494, allocations: 3.125 kB / 0.8674 GB, free: 142.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=28): time 0.002741/0.9522, allocations: 0.6662 MB / 0.868 GB, free: 142.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.517e-05/0.9522, allocations: 297.2 kB / 0.8683 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003194/0.9526, allocations: 382.5 kB / 0.8687 GB, free: 142.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.9526, allocations: 29.64 kB / 0.8687 GB, free: 142.2 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.9527, allocations: 288.2 kB / 0.869 GB, free: 142 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.228e-05/0.9528, allocations: 88.84 kB / 0.869 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.247e-05/0.9528, allocations: 0 / 0.869 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.218e-05/0.9529, allocations: 361.6 kB / 0.8694 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.9531, allocations: 133.9 kB / 0.8695 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002486/0.9533, allocations: 360.1 kB / 0.8699 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002404/0.9557, allocations: 0.5163 MB / 0.8704 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.9557, allocations: 3.844 kB / 0.8704 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002867/0.9586, allocations: 0.8316 MB / 0.8712 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000333/0.959, allocations: 2.096 MB / 0.8732 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.959, allocations: 7.781 kB / 0.8732 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.959, allocations: 7 kB / 0.8732 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.96, allocations: 181.5 kB / 0.8734 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007371/0.9608, allocations: 0.6804 MB / 0.8741 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005038/0.9613, allocations: 56.83 kB / 0.8741 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.403e-05/0.9614, allocations: 34.14 kB / 0.8742 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.774e-06/0.9614, allocations: 3.719 kB / 0.8742 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001923/0.9633, allocations: 0.6112 MB / 0.8748 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.9633, allocations: 3.344 kB / 0.8748 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.504e-06/0.9633, allocations: 11.12 kB / 0.8748 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.9637, allocations: 114.4 kB / 0.8749 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.9637, allocations: 10.81 kB / 0.8749 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003758/0.9641, allocations: 46.83 kB / 0.8749 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.234e-05/0.9641, allocations: 28.8 kB / 0.875 GB, free: 138.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (56): * Single equations (assignments): 54 * 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.0001827/0.9643, allocations: 161.4 kB / 0.8751 GB, free: 138.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.167e-05/0.9644, allocations: 55.75 kB / 0.8752 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.9664, allocations: 0.9196 MB / 0.8761 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.9664, allocations: 11.17 kB / 0.8761 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.9664, allocations: 0 / 0.8761 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.9664, allocations: 3.891 kB / 0.8761 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004673/0.9669, allocations: 473.8 kB / 0.8765 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.9669, allocations: 224 / 0.8765 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005395/0.9674, allocations: 120.5 kB / 0.8767 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.9675, allocations: 3.938 kB / 0.8767 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.669e-05/0.9675, allocations: 10.34 kB / 0.8767 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003179/0.9678, allocations: 0.6246 MB / 0.8773 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.9678, allocations: 0 / 0.8773 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001234/0.9691, allocations: 0.5796 MB / 0.8778 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002156/0.9693, allocations: 206.6 kB / 0.878 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.9694, allocations: 7.781 kB / 0.8781 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002866/0.9697, allocations: 18.22 kB / 0.8781 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.174e-05/0.9698, allocations: 25.62 kB / 0.8781 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.308e-05/0.9698, allocations: 19.28 kB / 0.8781 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.000247/0.9701, allocations: 305.3 kB / 0.8784 GB, free: 136.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001099/0.9712, allocations: 448.9 kB / 0.8788 GB, free: 136.4 MB / 0.4948 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 (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.000684/0.9719, allocations: 463.8 kB / 0.8793 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001736/0.9736, allocations: 0.7683 MB / 0.88 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.9736, allocations: 5.062 kB / 0.88 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008689/0.9745, allocations: 343.5 kB / 0.8804 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008358/0.9753, allocations: 183.5 kB / 0.8805 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.9767, allocations: 0.7352 MB / 0.8813 GB, free: 135.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004309/0.9772, allocations: 0.9744 MB / 0.8822 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of SimCode: time 2.51e-07/0.9772, allocations: 1.562 kB / 0.8822 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.02239/0.9996, allocations: 14.81 MB / 0.8967 GB, free: 130.7 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches