Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.001413/0.001413, allocations: 177.8 kB / 8.36 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 1.937/1.937, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001148/0.001147, allocations: 92.22 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.2907/0.2907, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.856e-05/1.868e-05, allocations: 4.219 kB / 418.2 MB, free: 41.02 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.392, allocations: 58.85 MB / 477.1 MB, free: 5.254 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7433/1.135, allocations: 288.3 MB / 0.7474 GB, free: 47.48 MB / 475.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/1.136, allocations: 81.52 kB / 0.7475 GB, free: 47.44 MB / 475.1 MB [/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.7126/1.848, allocations: 116.3 MB / 0.8611 GB, free: 144.8 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.623e-06/1.848, allocations: 0 / 0.8611 GB, free: 144.8 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 5.431e-05/1.848, allocations: 13.86 kB / 0.8611 GB, free: 144.8 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001936/1.85, allocations: 0.859 MB / 0.8619 GB, free: 144.3 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/1.85, allocations: 10.56 kB / 0.8619 GB, free: 144.3 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005197/1.851, allocations: 78.62 kB / 0.862 GB, free: 144.2 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/1.852, allocations: 0.5269 MB / 0.8625 GB, free: 144 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/1.852, allocations: 17 kB / 0.8625 GB, free: 144 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.069e-05/1.853, allocations: 24.12 kB / 0.8626 GB, free: 144 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001075/1.854, allocations: 475.3 kB / 0.863 GB, free: 144 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/1.855, allocations: 0.5986 MB / 0.8636 GB, free: 143.8 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/1.855, allocations: 1.031 kB / 0.8636 GB, free: 143.8 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.75e-05/1.855, allocations: 3.906 kB / 0.8636 GB, free: 143.8 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/1.855, allocations: 13.22 kB / 0.8636 GB, free: 143.8 MB / 0.4952 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004464/1.859, allocations: 2.965 MB / 0.8665 GB, free: 141.9 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004806/1.86, allocations: 201 kB / 0.8667 GB, free: 141.9 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/1.86, allocations: 133.2 kB / 0.8668 GB, free: 141.9 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002709/1.861, allocations: 340.8 kB / 0.8672 GB, free: 141.5 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004724/1.861, allocations: 272.6 kB / 0.8674 GB, free: 141.4 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=28): time 2.525e-06/1.861, allocations: 0 / 0.8674 GB, free: 141.4 MB / 0.4952 GB Notification: Performance of matching and sorting (n=28): time 0.004423/1.865, allocations: 0.6634 MB / 0.8681 GB, free: 141.3 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.854e-05/1.866, allocations: 290 kB / 0.8683 GB, free: 141 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005665/1.866, allocations: 384.5 kB / 0.8687 GB, free: 140.8 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 5.689e-05/1.866, allocations: 25.7 kB / 0.8687 GB, free: 140.8 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/1.866, allocations: 385.2 kB / 0.8691 GB, free: 140.6 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 9.479e-05/1.867, allocations: 96.45 kB / 0.8692 GB, free: 140.5 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/1.867, allocations: 2.812 kB / 0.8692 GB, free: 140.5 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 7.441e-05/1.867, allocations: 328.1 kB / 0.8695 GB, free: 140.2 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003152/1.867, allocations: 135.4 kB / 0.8696 GB, free: 140.2 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000448/1.868, allocations: 360.6 kB / 0.87 GB, free: 139.9 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003824/1.871, allocations: 497 kB / 0.8704 GB, free: 139.9 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/1.871, allocations: 0 / 0.8704 GB, free: 139.9 MB / 0.4952 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.004738/1.876, allocations: 0.8059 MB / 0.8712 GB, free: 139.9 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004523/1.877, allocations: 2.123 MB / 0.8733 GB, free: 137.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/1.877, allocations: 7.812 kB / 0.8733 GB, free: 137.7 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.168e-05/1.877, allocations: 10.25 kB / 0.8733 GB, free: 137.7 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/1.879, allocations: 171.4 kB / 0.8735 GB, free: 137.7 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/1.88, allocations: 0.6752 MB / 0.8741 GB, free: 137.1 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000913/1.881, allocations: 58.27 kB / 0.8742 GB, free: 137 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.97e-05/1.881, allocations: 36 kB / 0.8742 GB, free: 137 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/1.881, allocations: 8.25 kB / 0.8742 GB, free: 137 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003233/1.884, allocations: 0.6324 MB / 0.8749 GB, free: 137 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/1.884, allocations: 3.938 kB / 0.8749 GB, free: 137 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/1.884, allocations: 14.48 kB / 0.8749 GB, free: 137 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006614/1.885, allocations: 113.3 kB / 0.875 GB, free: 137 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/1.885, allocations: 10.56 kB / 0.875 GB, free: 137 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006252/1.885, allocations: 43.67 kB / 0.875 GB, free: 137 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.395e-05/1.886, allocations: 27.7 kB / 0.8751 GB, free: 137 MB / 0.4952 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.0002571/1.886, allocations: 159.3 kB / 0.8752 GB, free: 136.8 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/1.886, allocations: 51.91 kB / 0.8753 GB, free: 136.8 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003141/1.889, allocations: 0.8096 MB / 0.8761 GB, free: 136.7 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/1.889, allocations: 15.47 kB / 0.8761 GB, free: 136.7 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/1.889, allocations: 0 / 0.8761 GB, free: 136.7 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/1.889, allocations: 0 / 0.8761 GB, free: 136.7 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008506/1.89, allocations: 471.6 kB / 0.8765 GB, free: 136.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/1.89, allocations: 0 / 0.8765 GB, free: 136.5 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009839/1.891, allocations: 116.6 kB / 0.8766 GB, free: 136.5 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.727e-06/1.891, allocations: 0 / 0.8766 GB, free: 136.5 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.284e-05/1.891, allocations: 14.02 kB / 0.8766 GB, free: 136.5 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004902/1.892, allocations: 0.6197 MB / 0.8773 GB, free: 135.9 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.892, allocations: 0 / 0.8773 GB, free: 135.9 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/1.894, allocations: 0.5891 MB / 0.8778 GB, free: 135.8 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003721/1.894, allocations: 197.1 kB / 0.878 GB, free: 135.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/1.895, allocations: 11.8 kB / 0.878 GB, free: 135.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005314/1.895, allocations: 21.62 kB / 0.8781 GB, free: 135.7 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.267e-05/1.895, allocations: 22.36 kB / 0.8781 GB, free: 135.7 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.609e-05/1.895, allocations: 21.17 kB / 0.8781 GB, free: 135.7 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.0004495/1.896, allocations: 302.4 kB / 0.8784 GB, free: 135.6 MB / 0.4952 GB Notification: Performance of sort global known variables: time 4.01e-07/1.896, allocations: 0 / 0.8784 GB, free: 135.6 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.001857/1.898, allocations: 459.4 kB / 0.8788 GB, free: 135.5 MB / 0.4952 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.001241/1.899, allocations: 465.9 kB / 0.8793 GB, free: 135.4 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.003096/1.902, allocations: 0.8321 MB / 0.8801 GB, free: 135 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/1.902, allocations: 2.594 kB / 0.8801 GB, free: 135 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.001336/1.903, allocations: 353.8 kB / 0.8804 GB, free: 134.9 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/1.905, allocations: 188.9 kB / 0.8806 GB, free: 134.9 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/1.907, allocations: 0.7276 MB / 0.8813 GB, free: 134.5 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/1.908, allocations: 0.9044 MB / 0.8822 GB, free: 133.8 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002739/1.908, allocations: 64.8 kB / 0.8823 GB, free: 133.8 MB / 0.4952 GB Notification: Performance of SimCode: time 2.064e-06/1.908, allocations: 0 / 0.8823 GB, free: 133.8 MB / 0.4952 GB Notification: Performance of Templates: time 0.02717/1.935, allocations: 14.12 MB / 0.896 GB, free: 130.8 MB / 0.4952 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches