Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001264, allocations: 200.7 kB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 226.5 MB / 245.4 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008024/0.0008023, allocations: 94.36 kB / 297.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3759/0.3759, allocations: 44.82 MB / 394.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002872, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4428/0.4431, allocations: 62.96 MB / 0.5184 GB, free: 37.48 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.016/8.459, allocations: 2.767 GB / 3.286 GB, free: 156 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003562/8.46, allocations: 91.06 kB / 3.286 GB, free: 156 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 1.365/9.825, allocations: 390.6 MB / 3.667 GB, free: 53.41 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.256e-06/9.825, allocations: 0 / 3.667 GB, free: 53.41 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.983e-05/9.825, allocations: 8 kB / 3.667 GB, free: 53.41 MB / 0.5417 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.00818/9.833, allocations: 1.6 MB / 3.669 GB, free: 51.77 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.291e-05/9.833, allocations: 12.02 kB / 3.669 GB, free: 51.76 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002739/9.836, allocations: 314.9 kB / 3.669 GB, free: 51.46 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/9.837, allocations: 458.1 kB / 3.669 GB, free: 50.98 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.72e-05/9.837, allocations: 38.28 kB / 3.669 GB, free: 50.95 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/9.837, allocations: 36 kB / 3.669 GB, free: 50.91 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001816/9.839, allocations: 0.7018 MB / 3.67 GB, free: 50.16 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.378e-05/9.839, allocations: 7.938 kB / 3.67 GB, free: 50.16 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.815e-05/9.839, allocations: 20 kB / 3.67 GB, free: 50.14 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/9.839, allocations: 8 kB / 3.67 GB, free: 50.13 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/9.841, allocations: 0.611 MB / 3.671 GB, free: 49.52 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.004126/9.845, allocations: 2.976 MB / 3.674 GB, free: 46.36 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/9.847, allocations: 494.1 kB / 3.674 GB, free: 45.88 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003819/9.847, allocations: 194.5 kB / 3.674 GB, free: 45.69 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5967/10.44, allocations: 61.8 MB / 3.735 GB, free: 64.48 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.034e-05/10.44, allocations: 42.06 kB / 3.735 GB, free: 64.44 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=30): time 3.417e-06/10.44, allocations: 0 / 3.735 GB, free: 64.44 MB / 0.5417 GB Notification: Performance of matching and sorting (n=30): time 0.003543/10.45, allocations: 1.001 MB / 3.736 GB, free: 64.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/10.45, allocations: 105.7 kB / 3.736 GB, free: 64.17 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000605/10.45, allocations: 411.8 kB / 3.736 GB, free: 64.06 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.509e-05/10.45, allocations: 31.64 kB / 3.736 GB, free: 64.03 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001984/10.45, allocations: 254.5 kB / 3.736 GB, free: 63.94 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/10.45, allocations: 97.81 kB / 3.737 GB, free: 63.89 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.989e-05/10.45, allocations: 5.875 kB / 3.737 GB, free: 63.89 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001428/10.45, allocations: 353.2 kB / 3.737 GB, free: 63.58 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003696/10.45, allocations: 153 kB / 3.737 GB, free: 63.58 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/10.45, allocations: 276.9 kB / 3.737 GB, free: 63.44 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007565/10.45, allocations: 416.8 kB / 3.738 GB, free: 63.32 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/10.45, allocations: 0 / 3.738 GB, free: 63.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001105/10.45, allocations: 0.4994 MB / 3.738 GB, free: 63.26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001232/10.45, allocations: 183.9 kB / 3.738 GB, free: 63.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/10.45, allocations: 3.906 kB / 3.738 GB, free: 63.06 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002336/10.45, allocations: 335.5 kB / 3.739 GB, free: 63.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000334/10.45, allocations: 98.34 kB / 3.739 GB, free: 63.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004631/10.45, allocations: 0.6069 MB / 3.739 GB, free: 62.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005245/10.46, allocations: 68.69 kB / 3.739 GB, free: 62.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.487e-05/10.46, allocations: 21.36 kB / 3.739 GB, free: 62.52 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/10.46, allocations: 3.469 kB / 3.739 GB, free: 62.52 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008916/10.46, allocations: 414.7 kB / 3.74 GB, free: 62.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/10.46, allocations: 2.375 kB / 3.74 GB, free: 62.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.925e-06/10.46, allocations: 5.094 kB / 3.74 GB, free: 62.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003849/10.46, allocations: 107.9 kB / 3.74 GB, free: 62.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/10.46, allocations: 15.22 kB / 3.74 GB, free: 62.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004626/10.46, allocations: 66.59 kB / 3.74 GB, free: 62.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.931e-05/10.46, allocations: 21.64 kB / 3.74 GB, free: 62.5 MB / 0.5417 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 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked 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.0003872/10.46, allocations: 249.1 kB / 3.74 GB, free: 62.31 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/10.46, allocations: 47.31 kB / 3.74 GB, free: 62.29 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002953/10.46, allocations: 2.032 MB / 3.742 GB, free: 62.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.084e-05/10.46, allocations: 28.36 kB / 3.742 GB, free: 62.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/10.46, allocations: 0 / 3.742 GB, free: 62.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/10.46, allocations: 3.828 kB / 3.742 GB, free: 62.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/10.46, allocations: 1.017 MB / 3.743 GB, free: 61.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/10.46, allocations: 0 / 3.743 GB, free: 61.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002859/10.46, allocations: 79.39 kB / 3.743 GB, free: 61.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00153/10.46, allocations: 0.6364 MB / 3.744 GB, free: 61.84 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.138e-05/10.46, allocations: 10.06 kB / 3.744 GB, free: 61.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009128/10.47, allocations: 1.006 MB / 3.745 GB, free: 61.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/10.47, allocations: 2.312 kB / 3.745 GB, free: 61.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002103/10.47, allocations: 1.336 MB / 3.746 GB, free: 61.04 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005743/10.47, allocations: 260 kB / 3.747 GB, free: 60.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001647/10.47, allocations: 12.66 kB / 3.747 GB, free: 60.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004846/10.47, allocations: 41.16 kB / 3.747 GB, free: 60.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/10.47, allocations: 35.7 kB / 3.747 GB, free: 60.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-05/10.47, allocations: 15.62 kB / 3.747 GB, free: 60.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0006465/10.47, allocations: 396.3 kB / 3.747 GB, free: 60.81 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.81e-07/10.47, allocations: 0 / 3.747 GB, free: 60.81 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008074/10.48, allocations: 1.216 MB / 3.748 GB, free: 60.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01155/10.49, allocations: 1.61 MB / 3.75 GB, free: 60.68 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00245/10.49, allocations: 0.8134 MB / 3.751 GB, free: 60.67 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/10.49, allocations: 0 / 3.751 GB, free: 60.67 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0008486/10.49, allocations: 499.1 kB / 3.751 GB, free: 60.67 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/10.49, allocations: 270.4 kB / 3.751 GB, free: 60.67 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003503/10.5, allocations: 1.974 MB / 3.753 GB, free: 59.78 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007399/10.5, allocations: 0.9794 MB / 3.754 GB, free: 59.07 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001223/10.5, allocations: 0.565 MB / 3.755 GB, free: 59.07 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/10.5, allocations: 43.34 kB / 3.755 GB, free: 59.06 MB / 0.5417 GB Notification: Performance of SimCode: time 1.864e-06/10.5, allocations: 0 / 3.755 GB, free: 59.06 MB / 0.5417 GB Notification: Performance of Templates: time 0.08199/10.58, allocations: 39.41 MB / 3.793 GB, free: 57.61 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestFlowRate/TestFlowRate.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches