Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002264/0.002264, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.231/2.231, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 84.38 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2968/0.2968, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.885e-05/1.902e-05, allocations: 224 / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4175/0.4176, allocations: 58.85 MB / 477.1 MB, free: 5.285 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.038/8.455, allocations: 2.76 GB / 3.226 GB, free: 27.42 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/8.456, allocations: 86.89 kB / 3.226 GB, free: 27.38 MB / 0.4952 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 .... Notification: Performance of FrontEnd - DAE generated: time 2.082/10.54, allocations: 397.4 MB / 3.614 GB, free: 28.43 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.543e-06/10.54, allocations: 3.938 kB / 3.614 GB, free: 28.43 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 3.375e-05/10.54, allocations: 11.84 kB / 3.614 GB, free: 28.42 MB / 0.4952 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.00591/10.54, allocations: 1.533 MB / 3.615 GB, free: 26.85 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/10.54, allocations: 11.69 kB / 3.615 GB, free: 26.84 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002969/10.55, allocations: 287.1 kB / 3.616 GB, free: 26.56 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009779/10.55, allocations: 454.9 kB / 3.616 GB, free: 26.08 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.936e-05/10.55, allocations: 20.45 kB / 3.616 GB, free: 26.06 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.066e-05/10.55, allocations: 24.67 kB / 3.616 GB, free: 26.04 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008643/10.55, allocations: 370.5 kB / 3.617 GB, free: 25.68 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008732/10.55, allocations: 478.8 kB / 3.617 GB, free: 25.17 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/10.55, allocations: 7.891 kB / 3.617 GB, free: 25.16 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.091e-05/10.55, allocations: 7.938 kB / 3.617 GB, free: 25.15 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/10.55, allocations: 8 kB / 3.617 GB, free: 25.14 MB / 0.4952 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5091/11.06, allocations: 51.21 MB / 3.667 GB, free: 65.73 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007468/11.06, allocations: 270.6 kB / 3.667 GB, free: 65.71 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/11.06, allocations: 122.6 kB / 3.667 GB, free: 65.7 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1686/11.23, allocations: 55.74 MB / 3.722 GB, free: 31.36 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/11.23, allocations: 41.05 kB / 3.722 GB, free: 31.32 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=24): time 2.585e-06/11.23, allocations: 0 / 3.722 GB, free: 31.32 MB / 0.5108 GB Notification: Performance of matching and sorting (n=24): time 0.0032/11.23, allocations: 0.6162 MB / 3.722 GB, free: 31.27 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/11.23, allocations: 110.2 kB / 3.723 GB, free: 31.14 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004281/11.23, allocations: 300.3 kB / 3.723 GB, free: 31.04 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 3.477e-05/11.23, allocations: 25.7 kB / 3.723 GB, free: 31.01 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/11.23, allocations: 323.7 kB / 3.723 GB, free: 30.8 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 7.522e-05/11.23, allocations: 82.31 kB / 3.723 GB, free: 30.76 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.614e-05/11.23, allocations: 0 / 3.723 GB, free: 30.76 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 6.549e-05/11.23, allocations: 327.9 kB / 3.724 GB, free: 30.45 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/11.23, allocations: 99.58 kB / 3.724 GB, free: 30.45 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003075/11.23, allocations: 228.5 kB / 3.724 GB, free: 30.31 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/11.24, allocations: 257.6 kB / 3.724 GB, free: 30.3 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/11.24, allocations: 3.906 kB / 3.724 GB, free: 30.3 MB / 0.5108 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002119/11.24, allocations: 494.4 kB / 3.725 GB, free: 30.26 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002597/11.24, allocations: 1.314 MB / 3.726 GB, free: 28.88 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/11.24, allocations: 3.969 kB / 3.726 GB, free: 28.88 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002804/11.24, allocations: 53.11 kB / 3.726 GB, free: 28.88 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000595/11.24, allocations: 90.19 kB / 3.726 GB, free: 28.88 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/11.24, allocations: 0.6749 MB / 3.727 GB, free: 28.35 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007717/11.24, allocations: 75 kB / 3.727 GB, free: 28.33 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.907e-05/11.24, allocations: 18.84 kB / 3.727 GB, free: 28.33 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 8.997e-06/11.24, allocations: 6.781 kB / 3.727 GB, free: 28.33 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001427/11.24, allocations: 370.4 kB / 3.727 GB, free: 28.32 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/11.24, allocations: 3.688 kB / 3.727 GB, free: 28.32 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.917e-06/11.24, allocations: 3.844 kB / 3.727 GB, free: 28.32 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006851/11.24, allocations: 111.4 kB / 3.727 GB, free: 28.32 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/11.24, allocations: 6.906 kB / 3.727 GB, free: 28.32 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005127/11.24, allocations: 55 kB / 3.727 GB, free: 28.32 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-05/11.24, allocations: 26.19 kB / 3.727 GB, free: 28.32 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001395/11.24, allocations: 115.7 kB / 3.727 GB, free: 28.21 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/11.24, allocations: 43.5 kB / 3.727 GB, free: 28.18 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002971/11.25, allocations: 1.586 MB / 3.729 GB, free: 28.02 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.892e-05/11.25, allocations: 21.44 kB / 3.729 GB, free: 28.02 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/11.25, allocations: 0 / 3.729 GB, free: 28.02 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/11.25, allocations: 3.75 kB / 3.729 GB, free: 28.02 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003543/11.25, allocations: 2.19 MB / 3.731 GB, free: 27.64 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/11.25, allocations: 3.406 kB / 3.731 GB, free: 27.64 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/11.25, allocations: 55.12 kB / 3.731 GB, free: 27.64 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008942/11.25, allocations: 0.5903 MB / 3.732 GB, free: 27.61 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/11.25, allocations: 0 / 3.732 GB, free: 27.61 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/11.25, allocations: 1.116 MB / 3.733 GB, free: 27.07 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/11.25, allocations: 0.8438 kB / 3.733 GB, free: 27.07 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/11.26, allocations: 1.217 MB / 3.734 GB, free: 26.78 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002647/11.26, allocations: 191.7 kB / 3.734 GB, free: 26.65 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.956e-05/11.26, allocations: 5.734 kB / 3.734 GB, free: 26.65 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005278/11.26, allocations: 34.36 kB / 3.734 GB, free: 26.64 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.32e-05/11.26, allocations: 29.55 kB / 3.734 GB, free: 26.64 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.395e-05/11.26, allocations: 14.75 kB / 3.734 GB, free: 26.64 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.0002966/11.26, allocations: 224.7 kB / 3.735 GB, free: 26.56 MB / 0.5108 GB Notification: Performance of sort global known variables: time 4.91e-07/11.26, allocations: 0 / 3.735 GB, free: 26.56 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.005313/11.26, allocations: 1.167 MB / 3.736 GB, free: 26.55 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.007921/11.27, allocations: 1.698 MB / 3.737 GB, free: 26.36 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.001547/11.27, allocations: 0.6241 MB / 3.738 GB, free: 26.35 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/11.27, allocations: 0 / 3.738 GB, free: 26.35 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.0006086/11.27, allocations: 402 kB / 3.738 GB, free: 26.34 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/11.27, allocations: 186 kB / 3.739 GB, free: 26.32 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/11.28, allocations: 1 MB / 3.74 GB, free: 26.03 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/11.28, allocations: 0.9424 MB / 3.74 GB, free: 25.32 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/11.28, allocations: 49.09 kB / 3.741 GB, free: 25.32 MB / 0.5108 GB Notification: Performance of SimCode: time 7.11e-07/11.28, allocations: 4 kB / 3.741 GB, free: 25.31 MB / 0.5108 GB Notification: Performance of Templates: time 0.0592/11.34, allocations: 31.12 MB / 3.771 GB, free: 22.21 MB / 0.5108 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestFlowRate/TestFlowRate.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches