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.001243/0.001243, allocations: 197.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.286/1.286, allocations: 227.2 MB / 245 MB, free: 5.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009257/0.0009258, allocations: 94.28 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3266/0.3266, allocations: 45.22 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000259/0.000259, allocations: 8 kB / 468.4 MB, free: 7.691 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3132, allocations: 63.25 MB / 0.5192 GB, free: 37.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5408/0.8541, allocations: 291.3 MB / 0.8037 GB, free: 23.48 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.8544, allocations: 83.33 kB / 0.8038 GB, free: 23.44 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.4874/1.342, allocations: 120.2 MB / 0.9212 GB, free: 148.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.653e-06/1.342, allocations: 0 / 0.9212 GB, free: 148.3 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.673e-05/1.342, allocations: 17.88 kB / 0.9212 GB, free: 148.3 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.002035/1.344, allocations: 0.9386 MB / 0.9221 GB, free: 147.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/1.344, allocations: 7.75 kB / 0.9221 GB, free: 147.6 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004626/1.344, allocations: 81.62 kB / 0.9222 GB, free: 147.6 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/1.346, allocations: 0.5218 MB / 0.9227 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/1.346, allocations: 34.53 kB / 0.9227 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/1.346, allocations: 46.88 kB / 0.9228 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/1.347, allocations: 0.6546 MB / 0.9234 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/1.347, allocations: 0 / 0.9234 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.545e-05/1.347, allocations: 23.75 kB / 0.9234 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/1.347, allocations: 14.44 kB / 0.9234 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007614/1.348, allocations: 0.5222 MB / 0.924 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003324/1.351, allocations: 3.073 MB / 0.927 GB, free: 144.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003631/1.352, allocations: 215.5 kB / 0.9272 GB, free: 144.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002047/1.352, allocations: 344.4 kB / 0.9275 GB, free: 143.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003177/1.352, allocations: 274.4 kB / 0.9278 GB, free: 143.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 1.984e-06/1.352, allocations: 0 / 0.9278 GB, free: 143.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.0008966/1.353, allocations: 0.58 MB / 0.9283 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/1.353, allocations: 298.4 kB / 0.9286 GB, free: 142.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004761/1.354, allocations: 492.1 kB / 0.9291 GB, free: 142.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.041e-05/1.354, allocations: 33.17 kB / 0.9291 GB, free: 142.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/1.354, allocations: 338.2 kB / 0.9294 GB, free: 142.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.58e-05/1.354, allocations: 91.58 kB / 0.9295 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.332e-05/1.354, allocations: 11.88 kB / 0.9295 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.074e-05/1.354, allocations: 365.6 kB / 0.9299 GB, free: 141.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002053/1.354, allocations: 143.6 kB / 0.93 GB, free: 141.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002826/1.354, allocations: 376.1 kB / 0.9304 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/1.355, allocations: 223.2 kB / 0.9306 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/1.355, allocations: 3.844 kB / 0.9306 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008425/1.356, allocations: 0.6136 MB / 0.9312 GB, free: 141.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000376/1.356, allocations: 2.13 MB / 0.9333 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/1.356, allocations: 7.719 kB / 0.9333 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/1.356, allocations: 11.72 kB / 0.9333 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/1.357, allocations: 179.3 kB / 0.9335 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003266/1.357, allocations: 0.6138 MB / 0.9341 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005184/1.358, allocations: 80.89 kB / 0.9341 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.669e-05/1.358, allocations: 36.92 kB / 0.9342 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.135e-06/1.358, allocations: 3.719 kB / 0.9342 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007108/1.359, allocations: 0.5389 MB / 0.9347 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/1.359, allocations: 7.188 kB / 0.9347 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.376e-06/1.359, allocations: 9.984 kB / 0.9347 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003295/1.359, allocations: 117.3 kB / 0.9348 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/1.359, allocations: 7.281 kB / 0.9348 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004278/1.36, allocations: 62.28 kB / 0.9349 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.806e-05/1.36, allocations: 29.38 kB / 0.9349 GB, free: 138 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.0002562/1.36, allocations: 307.4 kB / 0.9352 GB, free: 137.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.011e-05/1.36, allocations: 70.23 kB / 0.9353 GB, free: 137.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001078/1.361, allocations: 0.7488 MB / 0.936 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/1.361, allocations: 3.875 kB / 0.936 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/1.361, allocations: 4 kB / 0.936 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/1.361, allocations: 3.844 kB / 0.936 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005117/1.362, allocations: 0.5125 MB / 0.9365 GB, free: 137 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/1.362, allocations: 3.938 kB / 0.9365 GB, free: 137 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005279/1.362, allocations: 117.5 kB / 0.9366 GB, free: 137 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.193e-06/1.362, allocations: 11.86 kB / 0.9367 GB, free: 137 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/1.362, allocations: 11.8 kB / 0.9367 GB, free: 137 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001986/1.362, allocations: 0.603 MB / 0.9373 GB, free: 136.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/1.362, allocations: 3.984 kB / 0.9373 GB, free: 136.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000623/1.363, allocations: 0.5345 MB / 0.9378 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002912/1.363, allocations: 213.7 kB / 0.938 GB, free: 136 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/1.364, allocations: 15.61 kB / 0.938 GB, free: 136 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003209/1.364, allocations: 22.95 kB / 0.938 GB, free: 136 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.721e-05/1.364, allocations: 23.64 kB / 0.938 GB, free: 136 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.335e-05/1.364, allocations: 22.45 kB / 0.9381 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003761/1.364, allocations: 408 kB / 0.9385 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.2e-07/1.364, allocations: 4 kB / 0.9385 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001271/1.366, allocations: 465.7 kB / 0.9389 GB, free: 135.6 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.00096/1.367, allocations: 467.2 kB / 0.9393 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001843/1.368, allocations: 0.8897 MB / 0.9402 GB, free: 135.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/1.368, allocations: 4.062 kB / 0.9402 GB, free: 135.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000745/1.369, allocations: 366.1 kB / 0.9406 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/1.37, allocations: 269.8 kB / 0.9408 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/1.372, allocations: 1.27 MB / 0.9421 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000267/1.372, allocations: 0.9093 MB / 0.943 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0005934/1.373, allocations: 198.7 kB / 0.9431 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/1.373, allocations: 79.42 kB / 0.9432 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of SimCode: time 4.61e-07/1.373, allocations: 0 / 0.9432 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.01912/1.392, allocations: 14.92 MB / 0.9578 GB, free: 127.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