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.001887/0.001887, allocations: 200.8 kB / 18.11 MB, free: 3.609 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 226.5 MB / 245.4 MB, free: 8.152 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001035/0.001035, allocations: 102.8 kB / 297.5 MB, free: 6.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.512/0.512, allocations: 44.82 MB / 394.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003282/0.0003283, allocations: 8 kB / 467.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3952, allocations: 62.96 MB / 0.5184 GB, free: 37.35 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7805/1.176, allocations: 291.2 MB / 0.8028 GB, free: 26.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/1.176, allocations: 89.31 kB / 0.8029 GB, free: 26.65 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.5736/1.75, allocations: 119.5 MB / 0.9196 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.595e-06/1.75, allocations: 0 / 0.9196 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001082/1.75, allocations: 22.98 kB / 0.9196 GB, free: 146.9 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.00289/1.753, allocations: 0.923 MB / 0.9205 GB, free: 146.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/1.753, allocations: 13.06 kB / 0.9205 GB, free: 146.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006003/1.753, allocations: 83.2 kB / 0.9206 GB, free: 146.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001326/1.755, allocations: 0.5448 MB / 0.9211 GB, free: 145.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.58e-05/1.755, allocations: 35.34 kB / 0.9212 GB, free: 145.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/1.755, allocations: 44.41 kB / 0.9212 GB, free: 145.9 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/1.756, allocations: 0.6622 MB / 0.9218 GB, free: 145.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/1.756, allocations: 5.062 kB / 0.9218 GB, free: 145.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.247e-05/1.756, allocations: 28.59 kB / 0.9219 GB, free: 145.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/1.756, allocations: 10.88 kB / 0.9219 GB, free: 145.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007938/1.757, allocations: 0.5246 MB / 0.9224 GB, free: 145.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003338/1.76, allocations: 3.026 MB / 0.9254 GB, free: 143.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003601/1.761, allocations: 212.7 kB / 0.9256 GB, free: 143.3 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001935/1.761, allocations: 136.6 kB / 0.9257 GB, free: 143.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002237/1.761, allocations: 338.2 kB / 0.926 GB, free: 142.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003531/1.762, allocations: 286.1 kB / 0.9263 GB, free: 142.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 2.575e-06/1.762, allocations: 0 / 0.9263 GB, free: 142.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.000958/1.763, allocations: 0.5043 MB / 0.9268 GB, free: 142.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.801e-05/1.763, allocations: 294.3 kB / 0.9271 GB, free: 142.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005972/1.763, allocations: 0.5449 MB / 0.9276 GB, free: 141.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.725e-05/1.763, allocations: 33.48 kB / 0.9276 GB, free: 141.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002043/1.764, allocations: 338.5 kB / 0.9279 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.469e-05/1.764, allocations: 91.06 kB / 0.928 GB, free: 141.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.426e-05/1.764, allocations: 11.91 kB / 0.928 GB, free: 141.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001039/1.764, allocations: 370.2 kB / 0.9284 GB, free: 141.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002397/1.764, allocations: 150.3 kB / 0.9285 GB, free: 141.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003396/1.764, allocations: 372.5 kB / 0.9289 GB, free: 140.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005631/1.765, allocations: 0.5246 MB / 0.9294 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/1.765, allocations: 2.5 kB / 0.9294 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009744/1.766, allocations: 0.6162 MB / 0.93 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000146/1.766, allocations: 281.9 kB / 0.9303 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/1.766, allocations: 3.188 kB / 0.9303 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/1.766, allocations: 7.562 kB / 0.9303 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/1.767, allocations: 182.3 kB / 0.9305 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003436/1.768, allocations: 0.6116 MB / 0.9311 GB, free: 139.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006109/1.768, allocations: 87.42 kB / 0.9311 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.583e-05/1.768, allocations: 31.45 kB / 0.9312 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/1.768, allocations: 13 kB / 0.9312 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007759/1.769, allocations: 0.5431 MB / 0.9317 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/1.769, allocations: 3.938 kB / 0.9317 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.107e-06/1.769, allocations: 7.938 kB / 0.9317 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003349/1.769, allocations: 114.7 kB / 0.9318 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/1.77, allocations: 11.7 kB / 0.9318 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005509/1.77, allocations: 69.42 kB / 0.9319 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-05/1.77, allocations: 30.64 kB / 0.9319 GB, free: 138.8 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.0004078/1.771, allocations: 311.5 kB / 0.9322 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/1.771, allocations: 61.31 kB / 0.9323 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001345/1.772, allocations: 0.7453 MB / 0.933 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/1.772, allocations: 7.938 kB / 0.933 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/1.772, allocations: 3.938 kB / 0.933 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/1.772, allocations: 3.594 kB / 0.933 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008312/1.773, allocations: 0.5211 MB / 0.9335 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/1.773, allocations: 0 / 0.9335 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005611/1.774, allocations: 115.2 kB / 0.9337 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.176e-06/1.774, allocations: 6.844 kB / 0.9337 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/1.774, allocations: 14.44 kB / 0.9337 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002841/1.774, allocations: 0.5929 MB / 0.9343 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.774, allocations: 0 / 0.9343 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007563/1.775, allocations: 0.5305 MB / 0.9348 GB, free: 137 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003924/1.775, allocations: 217.6 kB / 0.935 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/1.775, allocations: 7.125 kB / 0.935 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003504/1.776, allocations: 29.33 kB / 0.935 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.712e-05/1.776, allocations: 21.45 kB / 0.935 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.096e-05/1.776, allocations: 22.42 kB / 0.9351 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005352/1.776, allocations: 410.3 kB / 0.9355 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.1e-07/1.776, allocations: 7.938 kB / 0.9355 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001868/1.778, allocations: 469.5 kB / 0.9359 GB, free: 136.5 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.001399/1.78, allocations: 459.2 kB / 0.9363 GB, free: 136.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002073/1.782, allocations: 0.9012 MB / 0.9372 GB, free: 136 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.782, allocations: 4.062 kB / 0.9372 GB, free: 136 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008026/1.782, allocations: 371.4 kB / 0.9376 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/1.784, allocations: 268.6 kB / 0.9378 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/1.786, allocations: 1.269 MB / 0.9391 GB, free: 135 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005466/1.787, allocations: 0.894 MB / 0.94 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0009096/1.788, allocations: 208.8 kB / 0.9402 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/1.788, allocations: 73.59 kB / 0.9402 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of SimCode: time 1.804e-06/1.788, allocations: 0 / 0.9402 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.02756/1.815, allocations: 15.31 MB / 0.9552 GB, free: 130.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/jenkins1/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