Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001619/0.001619, allocations: 193.5 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 226.5 MB / 244.1 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007595/0.0007596, allocations: 105.2 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3943/0.3943, allocations: 44.82 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003192/0.0003197, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.4076, allocations: 62.94 MB / 0.5165 GB, free: 37.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6191/1.027, allocations: 291.2 MB / 0.8009 GB, free: 26.83 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/1.027, allocations: 85.89 kB / 0.8009 GB, free: 26.78 MB / 490.7 MB [/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.5516/1.579, allocations: 119.5 MB / 0.9176 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.455e-06/1.579, allocations: 4.062 kB / 0.9176 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.168e-05/1.579, allocations: 19.41 kB / 0.9177 GB, free: 146.8 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.002765/1.582, allocations: 0.9231 MB / 0.9186 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.844e-05/1.582, allocations: 16.34 kB / 0.9186 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006203/1.582, allocations: 79.09 kB / 0.9186 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/1.584, allocations: 0.5431 MB / 0.9192 GB, free: 145.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.891e-05/1.584, allocations: 36.41 kB / 0.9192 GB, free: 145.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/1.584, allocations: 43.03 kB / 0.9193 GB, free: 145.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/1.585, allocations: 0.6656 MB / 0.9199 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/1.585, allocations: 1.469 kB / 0.9199 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.832e-05/1.585, allocations: 28.16 kB / 0.9199 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.056e-05/1.585, allocations: 11.5 kB / 0.9199 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009653/1.586, allocations: 0.5161 MB / 0.9204 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003714/1.59, allocations: 3.035 MB / 0.9234 GB, free: 143.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003762/1.591, allocations: 210.3 kB / 0.9236 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002104/1.591, allocations: 136.6 kB / 0.9237 GB, free: 143.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002462/1.591, allocations: 339.2 kB / 0.9241 GB, free: 142.8 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000383/1.591, allocations: 281.1 kB / 0.9243 GB, free: 142.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 2.935e-06/1.591, allocations: 0 / 0.9243 GB, free: 142.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.0009836/1.592, allocations: 0.5129 MB / 0.9248 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.953e-05/1.593, allocations: 298 kB / 0.9251 GB, free: 142 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006521/1.593, allocations: 0.5433 MB / 0.9256 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.949e-05/1.593, allocations: 33.67 kB / 0.9257 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002153/1.593, allocations: 340 kB / 0.926 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.393e-05/1.594, allocations: 94.34 kB / 0.9261 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.931e-05/1.594, allocations: 11.97 kB / 0.9261 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001098/1.594, allocations: 369.7 kB / 0.9265 GB, free: 141 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002286/1.594, allocations: 150.5 kB / 0.9266 GB, free: 141 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003609/1.594, allocations: 366.7 kB / 0.927 GB, free: 140.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005978/1.595, allocations: 0.5292 MB / 0.9275 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/1.595, allocations: 3.969 kB / 0.9275 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001124/1.596, allocations: 0.6172 MB / 0.9281 GB, free: 140 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000251/1.596, allocations: 270.8 kB / 0.9283 GB, free: 139.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/1.596, allocations: 3.688 kB / 0.9283 GB, free: 139.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.154e-05/1.596, allocations: 9.875 kB / 0.9283 GB, free: 139.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/1.598, allocations: 179.8 kB / 0.9285 GB, free: 139.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005425/1.598, allocations: 0.6154 MB / 0.9291 GB, free: 139 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008541/1.599, allocations: 79.61 kB / 0.9292 GB, free: 139 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/1.599, allocations: 36.64 kB / 0.9292 GB, free: 139 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/1.599, allocations: 3.406 kB / 0.9292 GB, free: 139 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009255/1.6, allocations: 0.5453 MB / 0.9298 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/1.6, allocations: 3.938 kB / 0.9298 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/1.6, allocations: 9 kB / 0.9298 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000372/1.601, allocations: 118.1 kB / 0.9299 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.028e-05/1.601, allocations: 11.84 kB / 0.9299 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007261/1.601, allocations: 70.91 kB / 0.93 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.577e-05/1.601, allocations: 30.95 kB / 0.93 GB, free: 138.7 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 () * Number of clocked 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.0005536/1.602, allocations: 302.1 kB / 0.9303 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001742/1.602, allocations: 63.88 kB / 0.9303 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001595/1.604, allocations: 0.7521 MB / 0.9311 GB, free: 138.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/1.604, allocations: 3.812 kB / 0.9311 GB, free: 138.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/1.604, allocations: 3.938 kB / 0.9311 GB, free: 138.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/1.604, allocations: 3.234 kB / 0.9311 GB, free: 138.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/1.605, allocations: 0.5244 MB / 0.9316 GB, free: 137.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/1.605, allocations: 0 / 0.9316 GB, free: 137.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006282/1.606, allocations: 119.5 kB / 0.9317 GB, free: 137.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/1.606, allocations: 3.719 kB / 0.9317 GB, free: 137.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.919e-05/1.606, allocations: 13.69 kB / 0.9317 GB, free: 137.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002888/1.606, allocations: 0.5913 MB / 0.9323 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/1.606, allocations: 0 / 0.9323 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007491/1.607, allocations: 0.537 MB / 0.9328 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000353/1.607, allocations: 211 kB / 0.933 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/1.607, allocations: 7.906 kB / 0.933 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003686/1.608, allocations: 33.38 kB / 0.9331 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.262e-05/1.608, allocations: 31.17 kB / 0.9331 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.179e-05/1.608, allocations: 15.45 kB / 0.9331 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004646/1.608, allocations: 412.7 kB / 0.9335 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/1.608, allocations: 3.062 kB / 0.9335 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001691/1.61, allocations: 463.9 kB / 0.934 GB, free: 136.4 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) * Number of clocked states: 0 () * 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.001469/1.611, allocations: 461.5 kB / 0.9344 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002323/1.614, allocations: 0.901 MB / 0.9353 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/1.614, allocations: 0 / 0.9353 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008672/1.615, allocations: 370.2 kB / 0.9356 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/1.616, allocations: 266.6 kB / 0.9359 GB, free: 135.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/1.619, allocations: 1.3 MB / 0.9372 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/1.619, allocations: 0.9003 MB / 0.938 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002162/1.619, allocations: 68.39 kB / 0.9381 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of SimCode: time 8.22e-07/1.619, allocations: 3.375 kB / 0.9381 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.02668/1.646, allocations: 14.87 MB / 0.9526 GB, free: 130.9 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches