Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009739/0.0009741, allocations: 197.2 kB / 16.79 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 226.5 MB / 244.1 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007425/0.0007425, allocations: 97.94 kB / 296.1 MB, free: 6.633 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4013/0.4013, allocations: 44.82 MB / 392.9 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003955/0.0003956, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.41/0.4104, allocations: 62.96 MB / 0.5165 GB, free: 37.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.993/7.403, allocations: 2.767 GB / 3.284 GB, free: 31.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/7.404, allocations: 87.95 kB / 3.284 GB, free: 31.62 MB / 0.5261 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.709/9.112, allocations: 390.6 MB / 3.665 GB, free: 47.84 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.344e-06/9.112, allocations: 0 / 3.665 GB, free: 47.84 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.659e-05/9.113, allocations: 18.55 kB / 3.665 GB, free: 47.84 MB / 0.5261 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.008071/9.121, allocations: 1.588 MB / 3.667 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/9.121, allocations: 10.91 kB / 3.667 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002588/9.123, allocations: 312.1 kB / 3.667 GB, free: 46.59 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/9.125, allocations: 466.7 kB / 3.667 GB, free: 46.18 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.351e-05/9.125, allocations: 32.81 kB / 3.667 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/9.125, allocations: 45.59 kB / 3.668 GB, free: 46.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001858/9.127, allocations: 0.6964 MB / 3.668 GB, free: 45.69 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/9.127, allocations: 3.938 kB / 3.668 GB, free: 45.69 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-05/9.127, allocations: 22.97 kB / 3.668 GB, free: 45.68 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.832e-05/9.127, allocations: 11.12 kB / 3.668 GB, free: 45.68 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001694/9.128, allocations: 0.6072 MB / 3.669 GB, free: 45.4 MB / 0.5261 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.003975/9.132, allocations: 2.981 MB / 3.672 GB, free: 42.26 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/9.134, allocations: 493.1 kB / 3.672 GB, free: 41.77 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003817/9.134, allocations: 189.6 kB / 3.672 GB, free: 41.59 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5632/9.697, allocations: 61.8 MB / 3.733 GB, free: 74.38 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.05e-05/9.698, allocations: 44.44 kB / 3.733 GB, free: 74.34 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=30): time 2.975e-06/9.698, allocations: 0 / 3.733 GB, free: 74.34 MB / 0.5417 GB Notification: Performance of matching and sorting (n=30): time 0.003837/9.701, allocations: 0.9971 MB / 3.734 GB, free: 74.21 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.65e-05/9.701, allocations: 105.5 kB / 3.734 GB, free: 74.09 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006727/9.702, allocations: 409.7 kB / 3.734 GB, free: 73.98 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.321e-05/9.702, allocations: 31.61 kB / 3.734 GB, free: 73.95 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/9.702, allocations: 249.5 kB / 3.735 GB, free: 73.85 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/9.703, allocations: 101.7 kB / 3.735 GB, free: 73.8 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/9.703, allocations: 3.812 kB / 3.735 GB, free: 73.8 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001235/9.703, allocations: 358.9 kB / 3.735 GB, free: 73.49 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003878/9.703, allocations: 147.1 kB / 3.735 GB, free: 73.49 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004594/9.704, allocations: 280.9 kB / 3.735 GB, free: 73.35 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008352/9.704, allocations: 407.1 kB / 3.736 GB, free: 73.23 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/9.704, allocations: 2.781 kB / 3.736 GB, free: 73.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001243/9.706, allocations: 0.4964 MB / 3.736 GB, free: 73.18 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001461/9.706, allocations: 186.2 kB / 3.736 GB, free: 72.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/9.706, allocations: 4.312 kB / 3.736 GB, free: 72.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002442/9.708, allocations: 342.5 kB / 3.737 GB, free: 72.97 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/9.709, allocations: 91.47 kB / 3.737 GB, free: 72.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004559/9.709, allocations: 0.6029 MB / 3.737 GB, free: 72.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005632/9.71, allocations: 79.84 kB / 3.738 GB, free: 72.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.38e-05/9.71, allocations: 16.62 kB / 3.738 GB, free: 72.43 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/9.71, allocations: 5.656 kB / 3.738 GB, free: 72.43 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009073/9.711, allocations: 415.2 kB / 3.738 GB, free: 72.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/9.711, allocations: 2.812 kB / 3.738 GB, free: 72.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.013e-06/9.711, allocations: 7.25 kB / 3.738 GB, free: 72.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003693/9.711, allocations: 110.5 kB / 3.738 GB, free: 72.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/9.711, allocations: 7.531 kB / 3.738 GB, free: 72.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000462/9.712, allocations: 73.84 kB / 3.738 GB, free: 72.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/9.712, allocations: 17.56 kB / 3.738 GB, free: 72.41 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.0003306/9.712, allocations: 251.2 kB / 3.738 GB, free: 72.23 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/9.712, allocations: 47.72 kB / 3.738 GB, free: 72.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002756/9.715, allocations: 2.032 MB / 3.74 GB, free: 72.01 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-05/9.715, allocations: 29.95 kB / 3.74 GB, free: 72.01 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/9.715, allocations: 2.531 kB / 3.74 GB, free: 72.01 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/9.715, allocations: 0 / 3.74 GB, free: 72.01 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/9.716, allocations: 1.013 MB / 3.741 GB, free: 71.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/9.716, allocations: 1.781 kB / 3.741 GB, free: 71.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003245/9.717, allocations: 77.25 kB / 3.741 GB, free: 71.79 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001519/9.718, allocations: 0.6389 MB / 3.742 GB, free: 71.75 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/9.718, allocations: 15.03 kB / 3.742 GB, free: 71.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008139/9.719, allocations: 1.001 MB / 3.743 GB, free: 71.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/9.719, allocations: 0 / 3.743 GB, free: 71.22 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/9.721, allocations: 1.339 MB / 3.744 GB, free: 70.96 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005438/9.722, allocations: 263 kB / 3.745 GB, free: 70.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/9.722, allocations: 6.219 kB / 3.745 GB, free: 70.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004558/9.722, allocations: 39.31 kB / 3.745 GB, free: 70.82 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/9.722, allocations: 31.42 kB / 3.745 GB, free: 70.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.702e-05/9.722, allocations: 17.28 kB / 3.745 GB, free: 70.82 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0006299/9.723, allocations: 388.6 kB / 3.745 GB, free: 70.73 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.62e-07/9.723, allocations: 0 / 3.745 GB, free: 70.73 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008353/9.731, allocations: 1.222 MB / 3.746 GB, free: 70.72 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.01395/9.745, allocations: 1.626 MB / 3.748 GB, free: 70.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002738/9.748, allocations: 0.8121 MB / 3.749 GB, free: 70.59 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/9.748, allocations: 0 / 3.749 GB, free: 70.59 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00105/9.749, allocations: 0.4887 MB / 3.749 GB, free: 70.59 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00219/9.752, allocations: 270.9 kB / 3.749 GB, free: 70.58 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003605/9.755, allocations: 2.004 MB / 3.751 GB, free: 69.66 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005949/9.756, allocations: 0.9851 MB / 3.752 GB, free: 68.96 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/9.756, allocations: 49.45 kB / 3.752 GB, free: 68.95 MB / 0.5417 GB Notification: Performance of SimCode: time 1.153e-06/9.756, allocations: 0 / 3.752 GB, free: 68.95 MB / 0.5417 GB Notification: Performance of Templates: time 0.06591/9.822, allocations: 29.95 MB / 3.782 GB, free: 67.85 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches