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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009996/0.0009996, allocations: 176 kB / 8.005 MB, free: 1.07 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.498/1.498, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000878/0.000878, allocations: 86.64 kB / 261.7 MB, free: 1.68 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.2139/0.2139, allocations: 43.49 MB / 353.2 MB, free: 276 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.415e-05/1.418e-05, allocations: 0 / 418.3 MB, free: 28.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1217, allocations: 58.86 MB / 477.1 MB, free: 1.633 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8756/0.9974, allocations: 288.3 MB / 0.7475 GB, free: 145.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.9977, allocations: 85.33 kB / 0.7475 GB, free: 145.7 MB / 0.4948 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 - DAE generated: time 0.2128/1.21, allocations: 116.3 MB / 0.8611 GB, free: 37.35 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.803e-06/1.211, allocations: 0 / 0.8611 GB, free: 37.35 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.83e-05/1.211, allocations: 16 kB / 0.8611 GB, free: 37.34 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.001829/1.212, allocations: 0.8626 MB / 0.862 GB, free: 36.42 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/1.212, allocations: 8.25 kB / 0.862 GB, free: 36.41 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000543/1.213, allocations: 83.14 kB / 0.862 GB, free: 36.33 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/1.214, allocations: 0.5195 MB / 0.8626 GB, free: 35.77 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/1.214, allocations: 16 kB / 0.8626 GB, free: 35.76 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.022e-05/1.214, allocations: 31.98 kB / 0.8626 GB, free: 35.73 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006766/1.215, allocations: 486.4 kB / 0.8631 GB, free: 35.25 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007623/1.216, allocations: 0.5868 MB / 0.8636 GB, free: 34.6 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/1.216, allocations: 0 / 0.8636 GB, free: 34.6 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.009e-05/1.216, allocations: 7.938 kB / 0.8636 GB, free: 34.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/1.216, allocations: 12 kB / 0.8637 GB, free: 34.58 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002871/1.219, allocations: 2.96 MB / 0.8665 GB, free: 31.45 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000276/1.219, allocations: 202.8 kB / 0.8667 GB, free: 31.24 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/1.219, allocations: 125.1 kB / 0.8669 GB, free: 31.11 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001852/1.219, allocations: 348.3 kB / 0.8672 GB, free: 30.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002888/1.22, allocations: 262.8 kB / 0.8674 GB, free: 30.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 1.623e-06/1.22, allocations: 4 kB / 0.8674 GB, free: 30.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=28): time 0.002653/1.222, allocations: 0.6557 MB / 0.8681 GB, free: 29.74 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/1.222, allocations: 290.7 kB / 0.8684 GB, free: 29.39 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/1.223, allocations: 381.2 kB / 0.8687 GB, free: 29.01 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/1.223, allocations: 33.64 kB / 0.8688 GB, free: 28.97 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/1.223, allocations: 342.9 kB / 0.8691 GB, free: 28.63 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.145e-05/1.223, allocations: 86.75 kB / 0.8692 GB, free: 28.55 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.217e-05/1.223, allocations: 4 kB / 0.8692 GB, free: 28.54 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.664e-05/1.223, allocations: 354.8 kB / 0.8695 GB, free: 28.19 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/1.223, allocations: 137.1 kB / 0.8696 GB, free: 28.05 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002567/1.224, allocations: 355.8 kB / 0.87 GB, free: 27.61 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002269/1.226, allocations: 495.3 kB / 0.8705 GB, free: 27.12 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/1.226, allocations: 4 kB / 0.8705 GB, free: 27.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00277/1.229, allocations: 0.8281 MB / 0.8713 GB, free: 26.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005195/1.229, allocations: 2.127 MB / 0.8733 GB, free: 23.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/1.229, allocations: 4 kB / 0.8733 GB, free: 23.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/1.229, allocations: 11.98 kB / 0.8734 GB, free: 23.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/1.23, allocations: 175.7 kB / 0.8735 GB, free: 23.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006884/1.231, allocations: 0.6679 MB / 0.8742 GB, free: 23.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005311/1.232, allocations: 63.45 kB / 0.8742 GB, free: 23.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.663e-05/1.232, allocations: 31.98 kB / 0.8743 GB, free: 23.02 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/1.232, allocations: 7.953 kB / 0.8743 GB, free: 23.01 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001849/1.234, allocations: 0.6324 MB / 0.8749 GB, free: 22.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/1.234, allocations: 15.97 kB / 0.8749 GB, free: 22.36 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.746e-06/1.234, allocations: 8 kB / 0.8749 GB, free: 22.35 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003129/1.234, allocations: 111.8 kB / 0.875 GB, free: 22.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/1.234, allocations: 8 kB / 0.875 GB, free: 22.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004273/1.234, allocations: 47.66 kB / 0.8751 GB, free: 22.19 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.703e-05/1.234, allocations: 32 kB / 0.8751 GB, free: 22.16 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.0001754/1.235, allocations: 158.5 kB / 0.8753 GB, free: 21.99 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.284e-05/1.235, allocations: 59.3 kB / 0.8753 GB, free: 21.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001765/1.236, allocations: 0.796 MB / 0.8761 GB, free: 21.12 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/1.236, allocations: 15.98 kB / 0.8761 GB, free: 21.11 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/1.236, allocations: 0 / 0.8761 GB, free: 21.11 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/1.236, allocations: 0 / 0.8761 GB, free: 21.11 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005248/1.237, allocations: 462 kB / 0.8765 GB, free: 20.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/1.237, allocations: 0 / 0.8765 GB, free: 20.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005076/1.238, allocations: 119.8 kB / 0.8767 GB, free: 20.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/1.238, allocations: 4 kB / 0.8767 GB, free: 20.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.712e-05/1.238, allocations: 11.98 kB / 0.8767 GB, free: 20.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003112/1.238, allocations: 0.6171 MB / 0.8773 GB, free: 19.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.135e-06/1.238, allocations: 0 / 0.8773 GB, free: 19.84 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/1.239, allocations: 0.5896 MB / 0.8779 GB, free: 19.24 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002374/1.239, allocations: 212.1 kB / 0.8781 GB, free: 19.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.731e-05/1.24, allocations: 4 kB / 0.8781 GB, free: 19.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/1.24, allocations: 15.98 kB / 0.8781 GB, free: 18.99 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.495e-05/1.24, allocations: 28.3 kB / 0.8781 GB, free: 18.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/1.24, allocations: 27.92 kB / 0.8781 GB, free: 18.94 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000271/1.24, allocations: 302.9 kB / 0.8784 GB, free: 18.64 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/1.24, allocations: 0 / 0.8784 GB, free: 18.64 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001284/1.242, allocations: 459.1 kB / 0.8789 GB, free: 18.2 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.0009911/1.243, allocations: 470.6 kB / 0.8793 GB, free: 17.73 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00173/1.244, allocations: 0.8435 MB / 0.8801 GB, free: 16.86 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/1.244, allocations: 4.25 kB / 0.8801 GB, free: 16.86 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007102/1.245, allocations: 359.5 kB / 0.8805 GB, free: 16.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008898/1.246, allocations: 197.9 kB / 0.8807 GB, free: 16.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/1.247, allocations: 0.6893 MB / 0.8813 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/1.247, allocations: 0.9081 MB / 0.8822 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0006737/1.248, allocations: 208.1 kB / 0.8824 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/1.248, allocations: 55.41 kB / 0.8825 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of SimCode: time 2.2e-07/1.248, allocations: 3.938 kB / 0.8825 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of Templates: time 0.02094/1.269, allocations: 13.17 MB / 0.8953 GB, free: 1.25 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