Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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.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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.21/1.21, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008874/0.0008875, allocations: 91.17 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1683/0.1683, allocations: 45.14 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.196e-05/2.198e-05, allocations: 4 kB / 460.4 MB, free: 70.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08549/0.08553, allocations: 63.24 MB / 0.5114 GB, free: 6.805 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7301/0.8157, allocations: 291.2 MB / 0.7958 GB, free: 149 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001711/0.8159, allocations: 81.77 kB / 0.7959 GB, free: 149 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 .... [/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 0.203/1.019, allocations: 119.8 MB / 0.9128 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.482e-06/1.019, allocations: 0 / 0.9128 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.251e-05/1.019, allocations: 19.98 kB / 0.9128 GB, free: 37.09 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001103/1.02, allocations: 0.8585 MB / 0.9137 GB, free: 36.18 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/1.02, allocations: 8.031 kB / 0.9137 GB, free: 36.17 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002938/1.02, allocations: 87.14 kB / 0.9138 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007519/1.021, allocations: 0.521 MB / 0.9143 GB, free: 35.53 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/1.021, allocations: 33 kB / 0.9143 GB, free: 35.49 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.411e-05/1.021, allocations: 44 kB / 0.9143 GB, free: 35.45 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007463/1.022, allocations: 0.6565 MB / 0.915 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/1.022, allocations: 0 / 0.915 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.179e-05/1.022, allocations: 24 kB / 0.915 GB, free: 34.71 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/1.022, allocations: 12 kB / 0.915 GB, free: 34.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005775/1.023, allocations: 0.5074 MB / 0.9155 GB, free: 34.19 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/1.025, allocations: 3.073 MB / 0.9185 GB, free: 30.93 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/1.025, allocations: 214.6 kB / 0.9187 GB, free: 30.71 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/1.026, allocations: 148.9 kB / 0.9189 GB, free: 30.56 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001757/1.026, allocations: 336.4 kB / 0.9192 GB, free: 30.16 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002905/1.026, allocations: 272.2 kB / 0.9194 GB, free: 29.86 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 1.783e-06/1.026, allocations: 8 kB / 0.9194 GB, free: 29.85 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.000626/1.027, allocations: 401.6 kB / 0.9198 GB, free: 29.45 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/1.027, allocations: 294.7 kB / 0.9201 GB, free: 29.09 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004024/1.027, allocations: 488.8 kB / 0.9206 GB, free: 28.61 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.236e-05/1.027, allocations: 37.64 kB / 0.9206 GB, free: 28.56 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/1.027, allocations: 335.1 kB / 0.9209 GB, free: 28.23 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.122e-05/1.027, allocations: 90.73 kB / 0.921 GB, free: 28.14 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.247e-05/1.027, allocations: 12 kB / 0.921 GB, free: 28.13 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.648e-05/1.028, allocations: 366.8 kB / 0.9214 GB, free: 27.76 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/1.028, allocations: 145.1 kB / 0.9215 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002768/1.028, allocations: 365 kB / 0.9219 GB, free: 27.16 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/1.028, allocations: 227.9 kB / 0.9221 GB, free: 26.94 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/1.028, allocations: 4 kB / 0.9221 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007582/1.029, allocations: 0.6117 MB / 0.9227 GB, free: 26.31 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003076/1.029, allocations: 2.123 MB / 0.9248 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/1.029, allocations: 8 kB / 0.9248 GB, free: 24.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/1.029, allocations: 8 kB / 0.9248 GB, free: 24 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/1.03, allocations: 171.7 kB / 0.9249 GB, free: 23.83 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003297/1.031, allocations: 0.6172 MB / 0.9255 GB, free: 23.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004582/1.031, allocations: 87.14 kB / 0.9256 GB, free: 23.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.532e-05/1.031, allocations: 31.98 kB / 0.9257 GB, free: 23.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.345e-06/1.031, allocations: 4 kB / 0.9257 GB, free: 23.07 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006581/1.032, allocations: 0.5287 MB / 0.9262 GB, free: 22.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/1.032, allocations: 8 kB / 0.9262 GB, free: 22.53 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.003e-06/1.032, allocations: 12.03 kB / 0.9262 GB, free: 22.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003109/1.032, allocations: 107.9 kB / 0.9263 GB, free: 22.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/1.032, allocations: 15.92 kB / 0.9263 GB, free: 22.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003596/1.033, allocations: 67.42 kB / 0.9264 GB, free: 22.33 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.145e-05/1.033, allocations: 31.98 kB / 0.9264 GB, free: 22.3 MB / 0.5261 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.000136/1.033, allocations: 175.9 kB / 0.9266 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.212e-05/1.033, allocations: 67.3 kB / 0.9266 GB, free: 22.05 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001077/1.034, allocations: 0.7436 MB / 0.9274 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/1.034, allocations: 7.984 kB / 0.9274 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/1.034, allocations: 4 kB / 0.9274 GB, free: 21.28 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/1.034, allocations: 3.938 kB / 0.9274 GB, free: 21.28 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004655/1.035, allocations: 0.5208 MB / 0.9279 GB, free: 20.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/1.035, allocations: 3.938 kB / 0.9279 GB, free: 20.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005221/1.035, allocations: 115.8 kB / 0.928 GB, free: 20.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/1.035, allocations: 7.953 kB / 0.928 GB, free: 20.58 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.572e-05/1.035, allocations: 15.98 kB / 0.928 GB, free: 20.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001805/1.035, allocations: 0.5899 MB / 0.9286 GB, free: 19.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/1.035, allocations: 0 / 0.9286 GB, free: 19.95 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005695/1.036, allocations: 0.5248 MB / 0.9291 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/1.036, allocations: 212.1 kB / 0.9293 GB, free: 19.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.161e-05/1.036, allocations: 8 kB / 0.9293 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002981/1.037, allocations: 40 kB / 0.9294 GB, free: 19.13 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/1.037, allocations: 24.3 kB / 0.9294 GB, free: 19.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.01e-05/1.037, allocations: 15.98 kB / 0.9294 GB, free: 19.09 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003376/1.037, allocations: 407.2 kB / 0.9298 GB, free: 18.69 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/1.037, allocations: 4 kB / 0.9298 GB, free: 18.68 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001102/1.038, allocations: 451.5 kB / 0.9302 GB, free: 18.24 MB / 0.5261 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.0007092/1.039, allocations: 479.6 kB / 0.9307 GB, free: 17.77 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001733/1.041, allocations: 0.8972 MB / 0.9316 GB, free: 16.85 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/1.041, allocations: 3.938 kB / 0.9316 GB, free: 16.85 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000721/1.041, allocations: 360.5 kB / 0.9319 GB, free: 16.48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/1.042, allocations: 269.5 kB / 0.9322 GB, free: 16.23 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/1.044, allocations: 0.7355 MB / 0.9329 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/1.044, allocations: 0.9086 MB / 0.9338 GB, free: 14.53 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0006394/1.044, allocations: 224.6 kB / 0.934 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/1.045, allocations: 63.41 kB / 0.934 GB, free: 14.24 MB / 0.5261 GB Notification: Performance of SimCode: time 5.21e-07/1.045, allocations: 0 / 0.934 GB, free: 14.24 MB / 0.5261 GB Notification: Performance of Templates: time 0.2377/1.282, allocations: 16.02 MB / 0.9497 GB, free: 133.9 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches