Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.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.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009453/0.0009454, allocations: 177.1 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.567/1.567, allocations: 205.3 MB / 213.7 MB, free: 1.68 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.0008994/0.0008993, allocations: 90.12 kB / 261.7 MB, free: 1.625 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.1967/0.1967, allocations: 43.5 MB / 353.2 MB, free: 272 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.567e-05/1.57e-05, allocations: 4 kB / 418.3 MB, free: 28.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1051, allocations: 58.85 MB / 477.1 MB, free: 1.645 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.134/1.239, allocations: 474.4 MB / 0.9293 GB, free: 171.6 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/1.239, allocations: 87.23 kB / 0.9293 GB, free: 171.5 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.6263/1.865, allocations: 191.4 MB / 1.116 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.283e-06/1.865, allocations: 0 / 1.116 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.258e-05/1.865, allocations: 15.59 kB / 1.116 GB, free: 106.7 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002332/1.868, allocations: 1.032 MB / 1.117 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/1.868, allocations: 7.438 kB / 1.117 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001332/1.869, allocations: 178.6 kB / 1.117 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009975/1.87, allocations: 0.5506 MB / 1.118 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/1.87, allocations: 14.94 kB / 1.118 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.377e-05/1.87, allocations: 24.06 kB / 1.118 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006082/1.871, allocations: 454.5 kB / 1.118 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008424/1.872, allocations: 0.545 MB / 1.119 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/1.872, allocations: 0 / 1.119 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.385e-05/1.872, allocations: 5.797 kB / 1.119 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/1.872, allocations: 7.656 kB / 1.119 GB, free: 105.8 MB / 0.4948 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.002872/1.875, allocations: 2.739 MB / 1.122 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000628/1.875, allocations: 280.4 kB / 1.122 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/1.876, allocations: 126.1 kB / 1.122 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001951/1.876, allocations: 198.5 kB / 1.122 GB, free: 104 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002752/1.876, allocations: 256.2 kB / 1.123 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 1.392e-06/1.876, allocations: 0 / 1.123 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.008475/1.885, allocations: 1.549 MB / 1.124 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.852e-05/1.885, allocations: 298.2 kB / 1.124 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005357/1.885, allocations: 0.4926 MB / 1.125 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/1.885, allocations: 35.48 kB / 1.125 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/1.885, allocations: 372.1 kB / 1.125 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.688e-05/1.886, allocations: 86.14 kB / 1.125 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.779e-05/1.886, allocations: 0 / 1.125 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.959e-05/1.886, allocations: 364.3 kB / 1.126 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/1.886, allocations: 153.4 kB / 1.126 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002521/1.886, allocations: 365.1 kB / 1.126 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007945/1.894, allocations: 1.467 MB / 1.128 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.421e-06/1.894, allocations: 0 / 1.128 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.008583/1.903, allocations: 1.838 MB / 1.129 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003436/1.903, allocations: 2.04 MB / 1.131 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/1.903, allocations: 7.5 kB / 1.131 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/1.903, allocations: 7.469 kB / 1.131 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005608/1.909, allocations: 0.6002 MB / 1.132 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002914/1.912, allocations: 1.019 MB / 1.133 GB, free: 99.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006543/1.912, allocations: 66.05 kB / 1.133 GB, free: 99.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.948e-05/1.912, allocations: 53.73 kB / 1.133 GB, free: 99.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.729e-06/1.912, allocations: 3.281 kB / 1.133 GB, free: 99.8 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002366/1.915, allocations: 0.9076 MB / 1.134 GB, free: 99.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/1.915, allocations: 3.75 kB / 1.134 GB, free: 99.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/1.915, allocations: 7.375 kB / 1.134 GB, free: 99.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003608/1.915, allocations: 127.1 kB / 1.134 GB, free: 99.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.665e-05/1.915, allocations: 11.72 kB / 1.134 GB, free: 99.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004988/1.916, allocations: 47.16 kB / 1.134 GB, free: 99.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.125e-05/1.916, allocations: 49.62 kB / 1.134 GB, free: 99.79 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (55): * Single equations (assignments): 53 * 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.0001698/1.916, allocations: 166.5 kB / 1.134 GB, free: 99.65 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/1.916, allocations: 60.84 kB / 1.134 GB, free: 99.62 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003153/1.919, allocations: 0.7706 MB / 1.135 GB, free: 99.56 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/1.919, allocations: 6.156 kB / 1.135 GB, free: 99.56 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/1.919, allocations: 3.844 kB / 1.135 GB, free: 99.56 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/1.919, allocations: 0 / 1.135 GB, free: 99.56 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005092/1.92, allocations: 464 kB / 1.136 GB, free: 99.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/1.92, allocations: 0 / 1.136 GB, free: 99.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/1.921, allocations: 179.4 kB / 1.136 GB, free: 99.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/1.921, allocations: 3.969 kB / 1.136 GB, free: 99.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/1.921, allocations: 3.938 kB / 1.136 GB, free: 99.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008918/1.922, allocations: 0.7291 MB / 1.136 GB, free: 98.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.922, allocations: 0 / 1.136 GB, free: 98.81 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002917/1.925, allocations: 0.7119 MB / 1.137 GB, free: 98.71 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/1.925, allocations: 149 kB / 1.137 GB, free: 98.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/1.926, allocations: 2.938 kB / 1.137 GB, free: 98.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003156/1.926, allocations: 26.27 kB / 1.137 GB, free: 98.59 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.203e-05/1.926, allocations: 17.33 kB / 1.137 GB, free: 98.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/1.926, allocations: 11.27 kB / 1.137 GB, free: 98.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003556/1.926, allocations: 400.5 kB / 1.138 GB, free: 98.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2e-07/1.926, allocations: 0 / 1.138 GB, free: 98.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001738/1.928, allocations: 0.602 MB / 1.138 GB, free: 98.42 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 (24): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 0.002088/1.93, allocations: 1.348 MB / 1.14 GB, free: 98.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009871/1.94, allocations: 1.558 MB / 1.141 GB, free: 98.06 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/1.94, allocations: 0 / 1.141 GB, free: 98.06 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002588/1.943, allocations: 402.7 kB / 1.142 GB, free: 98 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/1.944, allocations: 208.1 kB / 1.142 GB, free: 97.99 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/1.945, allocations: 0.6181 MB / 1.142 GB, free: 97.75 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/1.945, allocations: 0.8942 MB / 1.143 GB, free: 97.05 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00114/1.946, allocations: 278.6 kB / 1.143 GB, free: 97.04 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/1.946, allocations: 67.67 kB / 1.144 GB, free: 97.04 MB / 0.4948 GB Notification: Performance of SimCode: time 4.01e-07/1.946, allocations: 0 / 1.144 GB, free: 97.04 MB / 0.4948 GB Notification: Performance of Templates: time 0.02421/1.971, allocations: 18.77 MB / 1.162 GB, free: 95.9 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestSharpEdgedOrifice/TestSharpEdgedOrifice.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches