Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002301/0.002305, allocations: 174.7 kB / 8.143 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001645/0.001645, allocations: 89.34 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2641/0.2641, allocations: 43.48 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.749e-06/1.001e-05, allocations: 4 kB / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2832, allocations: 58.83 MB / 476.5 MB, free: 5.098 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5976/0.8808, allocations: 288.2 MB / 0.7468 GB, free: 47.17 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.8812, allocations: 79.7 kB / 0.7469 GB, free: 47.12 MB / 474.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/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 .... [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/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.5679/1.449, allocations: 116.8 MB / 0.861 GB, free: 145.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.932e-05/1.449, allocations: 22.44 kB / 0.861 GB, free: 145.8 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.001736/1.451, allocations: 0.8716 MB / 0.8618 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/1.451, allocations: 7.062 kB / 0.8619 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004669/1.451, allocations: 81.36 kB / 0.8619 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/1.453, allocations: 0.5299 MB / 0.8624 GB, free: 145 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/1.453, allocations: 17.88 kB / 0.8625 GB, free: 145 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.611e-05/1.453, allocations: 25.66 kB / 0.8625 GB, free: 145 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001112/1.454, allocations: 476.6 kB / 0.8629 GB, free: 145 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/1.455, allocations: 0.5955 MB / 0.8635 GB, free: 144.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/1.455, allocations: 3.469 kB / 0.8635 GB, free: 144.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.961e-05/1.455, allocations: 3.688 kB / 0.8635 GB, free: 144.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/1.455, allocations: 11.19 kB / 0.8635 GB, free: 144.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00461/1.46, allocations: 2.977 MB / 0.8664 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004588/1.461, allocations: 197 kB / 0.8666 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000322/1.461, allocations: 128.5 kB / 0.8668 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002896/1.461, allocations: 346.6 kB / 0.8671 GB, free: 142.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004692/1.462, allocations: 266.7 kB / 0.8673 GB, free: 142.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 3.287e-06/1.462, allocations: 0 / 0.8673 GB, free: 142.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=28): time 0.00476/1.466, allocations: 0.671 MB / 0.868 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.571e-05/1.467, allocations: 289.2 kB / 0.8683 GB, free: 142 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005794/1.467, allocations: 381.6 kB / 0.8686 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.107e-05/1.467, allocations: 29.64 kB / 0.8687 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/1.467, allocations: 329.7 kB / 0.869 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.773e-05/1.468, allocations: 90.86 kB / 0.8691 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.756e-05/1.468, allocations: 0 / 0.8691 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.629e-05/1.468, allocations: 331.2 kB / 0.8694 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/1.468, allocations: 136.5 kB / 0.8695 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004892/1.469, allocations: 349.3 kB / 0.8698 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004184/1.473, allocations: 0.5226 MB / 0.8704 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/1.473, allocations: 3.656 kB / 0.8704 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.004915/1.478, allocations: 0.8105 MB / 0.8712 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004281/1.478, allocations: 2.087 MB / 0.8732 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/1.478, allocations: 6.406 kB / 0.8732 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.328e-05/1.478, allocations: 10.03 kB / 0.8732 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00201/1.48, allocations: 178.6 kB / 0.8734 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/1.481, allocations: 0.6756 MB / 0.874 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006741/1.482, allocations: 49.28 kB / 0.8741 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.996e-05/1.482, allocations: 33.05 kB / 0.8741 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.305e-06/1.482, allocations: 6.5 kB / 0.8741 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003303/1.486, allocations: 0.6082 MB / 0.8747 GB, free: 138 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/1.486, allocations: 3.938 kB / 0.8747 GB, free: 138 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/1.486, allocations: 7.812 kB / 0.8747 GB, free: 138 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000687/1.486, allocations: 113.1 kB / 0.8748 GB, free: 138 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/1.486, allocations: 17.06 kB / 0.8749 GB, free: 138 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005915/1.487, allocations: 43.84 kB / 0.8749 GB, free: 138 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.687e-05/1.487, allocations: 28.75 kB / 0.8749 GB, free: 138 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.0002059/1.487, allocations: 92.45 kB / 0.875 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/1.487, allocations: 48.03 kB / 0.8751 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003486/1.491, allocations: 0.9247 MB / 0.876 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/1.491, allocations: 13.72 kB / 0.876 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/1.491, allocations: 0 / 0.876 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/1.491, allocations: 2.125 kB / 0.876 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007694/1.492, allocations: 476.1 kB / 0.8764 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/1.492, allocations: 0 / 0.8764 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/1.493, allocations: 122.9 kB / 0.8765 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/1.493, allocations: 0 / 0.8765 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.328e-05/1.493, allocations: 19.53 kB / 0.8766 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005513/1.493, allocations: 0.6205 MB / 0.8772 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.493, allocations: 0 / 0.8772 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002228/1.496, allocations: 0.5862 MB / 0.8777 GB, free: 136.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/1.496, allocations: 204.6 kB / 0.8779 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001606/1.496, allocations: 11.69 kB / 0.8779 GB, free: 136.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005572/1.497, allocations: 23.09 kB / 0.878 GB, free: 136.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.799e-05/1.497, allocations: 25.47 kB / 0.878 GB, free: 136.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.645e-05/1.497, allocations: 18.66 kB / 0.878 GB, free: 136.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0004521/1.497, allocations: 307.2 kB / 0.8783 GB, free: 136.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001706/1.499, allocations: 450.9 kB / 0.8787 GB, free: 136.3 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.00112/1.5, allocations: 472.7 kB / 0.8792 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003362/1.504, allocations: 0.7622 MB / 0.8799 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/1.504, allocations: 6.406 kB / 0.8799 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001487/1.505, allocations: 338.1 kB / 0.8803 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/1.507, allocations: 186.9 kB / 0.8804 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002475/1.509, allocations: 0.7427 MB / 0.8812 GB, free: 135.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007128/1.51, allocations: 0.9677 MB / 0.8821 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.092e-06/1.51, allocations: 0 / 0.8821 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.03326/1.543, allocations: 14.09 MB / 0.8959 GB, free: 131.2 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches