Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 182.3 kB / 8.52 MB, free: 1.832 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.283/1.283, allocations: 221.4 MB / 230.3 MB, free: 7.758 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.0009244/0.0009242, allocations: 94.03 kB / 281.2 MB, free: 5.512 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.1784/0.1784, allocations: 44.14 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.045e-06/8.085e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1191, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7243/0.8434, allocations: 289.4 MB / 0.7768 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.8437, allocations: 84.39 kB / 0.7768 GB, free: 100.8 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.4736/1.317, allocations: 119.1 MB / 0.8932 GB, free: 128.7 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.024e-05/1.317, allocations: 17.86 kB / 0.8932 GB, free: 128.7 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001451/1.319, allocations: 0.853 MB / 0.894 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/1.319, allocations: 13.78 kB / 0.8941 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003719/1.319, allocations: 84.78 kB / 0.8941 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009311/1.32, allocations: 0.5364 MB / 0.8947 GB, free: 128 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/1.32, allocations: 14.16 kB / 0.8947 GB, free: 128 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.419e-05/1.32, allocations: 29.09 kB / 0.8947 GB, free: 128 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006591/1.321, allocations: 479.6 kB / 0.8952 GB, free: 128 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006937/1.322, allocations: 0.5836 MB / 0.8957 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/1.322, allocations: 2.25 kB / 0.8957 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.231e-05/1.322, allocations: 7.516 kB / 0.8957 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/1.322, allocations: 13.91 kB / 0.8958 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002822/1.325, allocations: 2.981 MB / 0.8987 GB, free: 126 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002638/1.325, allocations: 189.6 kB / 0.8988 GB, free: 126 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/1.325, allocations: 126.6 kB / 0.899 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002175/1.325, allocations: 346.4 kB / 0.8993 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000283/1.326, allocations: 268.9 kB / 0.8996 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=28): time 2.495e-06/1.326, allocations: 0 / 0.8996 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=28): time 0.003048/1.329, allocations: 0.6589 MB / 0.9002 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.511e-05/1.329, allocations: 289.8 kB / 0.9005 GB, free: 125 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004024/1.329, allocations: 383.9 kB / 0.9008 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.043e-05/1.329, allocations: 29.64 kB / 0.9009 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/1.329, allocations: 284.8 kB / 0.9011 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.317e-05/1.33, allocations: 88.84 kB / 0.9012 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.231e-05/1.33, allocations: 0 / 0.9012 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001038/1.33, allocations: 364.8 kB / 0.9016 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/1.33, allocations: 132.8 kB / 0.9017 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003244/1.33, allocations: 355.6 kB / 0.902 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002692/1.333, allocations: 0.5215 MB / 0.9025 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/1.333, allocations: 0 / 0.9025 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.003162/1.336, allocations: 0.8415 MB / 0.9034 GB, free: 124 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004302/1.337, allocations: 2.096 MB / 0.9054 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/1.337, allocations: 7.781 kB / 0.9054 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/1.337, allocations: 11.25 kB / 0.9054 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/1.338, allocations: 174.2 kB / 0.9056 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008414/1.339, allocations: 0.6789 MB / 0.9063 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005636/1.339, allocations: 60.05 kB / 0.9063 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.206e-05/1.339, allocations: 32.97 kB / 0.9063 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.137e-06/1.339, allocations: 3.875 kB / 0.9064 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002108/1.341, allocations: 0.6113 MB / 0.907 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/1.341, allocations: 7.281 kB / 0.907 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/1.341, allocations: 7.219 kB / 0.907 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003715/1.342, allocations: 115.6 kB / 0.9071 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.425e-06/1.342, allocations: 12.97 kB / 0.9071 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005576/1.342, allocations: 43.47 kB / 0.9071 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.018e-05/1.342, allocations: 27.45 kB / 0.9072 GB, free: 121.3 MB / 0.5105 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.0002445/1.343, allocations: 175.2 kB / 0.9073 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.046e-05/1.343, allocations: 47.25 kB / 0.9074 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002194/1.345, allocations: 0.9289 MB / 0.9083 GB, free: 121 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/1.345, allocations: 6.594 kB / 0.9083 GB, free: 121 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/1.345, allocations: 0 / 0.9083 GB, free: 121 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/1.345, allocations: 3.797 kB / 0.9083 GB, free: 121 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006208/1.346, allocations: 468.3 kB / 0.9087 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/1.346, allocations: 0 / 0.9087 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005914/1.346, allocations: 116.5 kB / 0.9088 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/1.346, allocations: 0 / 0.9088 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.033e-05/1.346, allocations: 16.56 kB / 0.9089 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004065/1.347, allocations: 0.6218 MB / 0.9095 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.347, allocations: 0 / 0.9095 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001372/1.348, allocations: 0.5809 MB / 0.91 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002667/1.348, allocations: 203.6 kB / 0.9102 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/1.349, allocations: 3.938 kB / 0.9102 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003101/1.349, allocations: 26.42 kB / 0.9103 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.798e-05/1.349, allocations: 21.25 kB / 0.9103 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.203e-05/1.349, allocations: 25.3 kB / 0.9103 GB, free: 120 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.000317/1.349, allocations: 303.9 kB / 0.9106 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001341/1.351, allocations: 454.7 kB / 0.911 GB, free: 119.9 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 (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.0008502/1.351, allocations: 461.1 kB / 0.9115 GB, free: 119.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001955/1.353, allocations: 0.774 MB / 0.9122 GB, free: 119.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/1.353, allocations: 0 / 0.9122 GB, free: 119.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000847/1.354, allocations: 344.7 kB / 0.9125 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00096/1.355, allocations: 186.9 kB / 0.9127 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/1.357, allocations: 0.72 MB / 0.9134 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004961/1.357, allocations: 0.9766 MB / 0.9144 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of SimCode: time 8.92e-07/1.357, allocations: 0 / 0.9144 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.02202/1.379, allocations: 14.82 MB / 0.9289 GB, free: 118.3 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches