Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001847/0.001847, allocations: 108.6 kB / 21.18 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002238/0.002238, allocations: 189.3 kB / 24.48 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 47.92 kB / 371.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.3616, allocations: 52.18 MB / 423.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07893/0.4405, allocations: 63.8 MB / 487.7 MB, free: 14.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0344/0.4749, allocations: 22.6 MB / 0.4983 GB, free: 7.984 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002098/0.477, allocations: 43.56 kB / 0.4984 GB, free: 7.941 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002833/0.4798, allocations: 0.7374 MB / 0.4991 GB, free: 7.199 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0197/0.4995, allocations: 5.835 MB / 0.5048 GB, free: 1.355 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01177/0.5113, allocations: 3.48 MB / 0.5082 GB, free: 13.88 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.02033/0.5316, allocations: 9.098 MB / 0.5171 GB, free: 4.664 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001651/0.5333, allocations: 0.5834 MB / 0.5176 GB, free: 4.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002957/0.5362, allocations: 1.082 MB / 0.5187 GB, free: 2.984 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002008/0.5382, allocations: 0.8596 MB / 0.5195 GB, free: 2.121 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004741/0.5387, allocations: 92 kB / 0.5196 GB, free: 2.031 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01944/0.5582, allocations: 7.699 MB / 0.5271 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007538/0.5589, allocations: 294.8 kB / 0.5274 GB, free: 10.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001814/0.5607, allocations: 0.7115 MB / 0.5281 GB, free: 9.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01714/0.5779, allocations: 5.77 MB / 0.5337 GB, free: 3.535 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.5779, allocations: 3.938 kB / 0.5337 GB, free: 3.531 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.5779, allocations: 3.938 kB / 0.5337 GB, free: 3.527 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.406e-05/0.578, allocations: 0 / 0.5337 GB, free: 3.527 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.008318/0.5863, allocations: 2.46 MB / 0.5361 GB, free: 1.023 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.5863, allocations: 11.97 kB / 0.5362 GB, free: 1.012 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004997/0.5913, allocations: 0.6595 MB / 0.5368 GB, free: 360 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2809/0.8723, allocations: 0.9604 MB / 0.5377 GB, free: 114.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.8724, allocations: 78.45 kB / 0.5378 GB, free: 114.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/0.8726, allocations: 101.4 kB / 0.5379 GB, free: 114.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004177/0.8768, allocations: 1.672 MB / 0.5395 GB, free: 113.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.085e-05/0.8768, allocations: 4.344 kB / 0.5396 GB, free: 113.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/0.8769, allocations: 48.06 kB / 0.5396 GB, free: 113.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.639e-05/0.8769, allocations: 30.28 kB / 0.5396 GB, free: 113.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00332/0.8802, allocations: 1.464 MB / 0.5411 GB, free: 113.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007761/0.888, allocations: 8.068 MB / 0.5489 GB, free: 107 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002603/0.8906, allocations: 1.034 MB / 0.5499 GB, free: 106.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004863/0.8911, allocations: 360.3 kB / 0.5503 GB, free: 106.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09987/0.991, allocations: 33.38 MB / 0.5829 GB, free: 76.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.991, allocations: 47.06 kB / 0.5829 GB, free: 76.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.414e-06/0.991, allocations: 4 kB / 0.5829 GB, free: 76.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005663/0.9967, allocations: 1.906 MB / 0.5848 GB, free: 74.19 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.9967, allocations: 192.4 kB / 0.585 GB, free: 73.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.9981, allocations: 0.9671 MB / 0.5859 GB, free: 72.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.917e-05/0.9982, allocations: 45.64 kB / 0.586 GB, free: 72.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003524/0.9985, allocations: 0.5787 MB / 0.5865 GB, free: 72.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002889/0.9988, allocations: 290 kB / 0.5868 GB, free: 72.15 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003795/0.9992, allocations: 234.8 kB / 0.587 GB, free: 71.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.9993, allocations: 357.9 kB / 0.5874 GB, free: 71.56 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005221/0.9998, allocations: 298.5 kB / 0.5877 GB, free: 71.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007197/1.001, allocations: 0.7411 MB / 0.5884 GB, free: 70.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/1.002, allocations: 1.103 MB / 0.5895 GB, free: 69.03 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.213e-05/1.002, allocations: 4 kB / 0.5895 GB, free: 69.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001974/1.004, allocations: 1.246 MB / 0.5907 GB, free: 67.78 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/1.004, allocations: 12 kB / 0.5907 GB, free: 67.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/1.004, allocations: 12 kB / 0.5907 GB, free: 67.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003166/1.007, allocations: 0.52 MB / 0.5912 GB, free: 67.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009714/1.008, allocations: 287.5 kB / 0.5915 GB, free: 66.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008044/1.009, allocations: 1.365 MB / 0.5928 GB, free: 65.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009005/1.01, allocations: 141.7 kB / 0.593 GB, free: 65.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/1.01, allocations: 63.98 kB / 0.593 GB, free: 65.36 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 20 (rightAdaptor.state_b.phase,rightAdaptor.state_a.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_b_des.phase,leftAdaptor.state_b.phase,leftAdaptor.state_a.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0004835/1.01, allocations: 292.6 kB / 0.5933 GB, free: 65.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000316/1.011, allocations: 131.2 kB / 0.5934 GB, free: 64.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003792/1.014, allocations: 4.602 MB / 0.5979 GB, free: 60.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.849e-05/1.014, allocations: 47.94 kB / 0.598 GB, free: 60.34 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/1.014, allocations: 3.844 kB / 0.598 GB, free: 60.34 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/1.014, allocations: 11.91 kB / 0.598 GB, free: 60.33 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004665/1.019, allocations: 4.985 MB / 0.6028 GB, free: 55.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/1.019, allocations: 4 kB / 0.6028 GB, free: 55.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007626/1.02, allocations: 171.7 kB / 0.603 GB, free: 55.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/1.021, allocations: 0.6724 MB / 0.6037 GB, free: 54.37 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.802e-05/1.021, allocations: 23.98 kB / 0.6037 GB, free: 54.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/1.022, allocations: 1.787 MB / 0.6054 GB, free: 52.51 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.022, allocations: 0 / 0.6054 GB, free: 52.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002113/1.024, allocations: 2.039 MB / 0.6074 GB, free: 50.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003934/1.025, allocations: 194.2 kB / 0.6076 GB, free: 50.22 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002693/1.025, allocations: 47.72 kB / 0.6077 GB, free: 50.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005822/1.026, allocations: 16 kB / 0.6077 GB, free: 50.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.138e-05/1.026, allocations: 60.55 kB / 0.6077 GB, free: 50.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.051e-05/1.026, allocations: 35.92 kB / 0.6078 GB, free: 50.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009759/1.027, allocations: 0.8303 MB / 0.6086 GB, free: 49.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/1.027, allocations: 0 / 0.6086 GB, free: 49.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003381/1.03, allocations: 1.295 MB / 0.6098 GB, free: 47.93 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004957/1.035, allocations: 1.269 MB / 0.6111 GB, free: 46.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002614/1.038, allocations: 1.23 MB / 0.6123 GB, free: 45.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.038, allocations: 4 kB / 0.6123 GB, free: 45.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001499/1.039, allocations: 0.7406 MB / 0.613 GB, free: 44.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003431/1.043, allocations: 0.7267 MB / 0.6137 GB, free: 44.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004119/1.047, allocations: 3.182 MB / 0.6168 GB, free: 40.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006433/1.047, allocations: 1.312 MB / 0.6181 GB, free: 39.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/1.048, allocations: 127.4 kB / 0.6182 GB, free: 39.42 MB / 446.1 MB Notification: Performance of SimCode: time 1.303e-06/1.048, allocations: 0 / 0.6182 GB, free: 39.42 MB / 446.1 MB Notification: Performance of Templates: time 0.05878/1.107, allocations: 51.18 MB / 0.6682 GB, free: 4.258 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,suddenExpansion1.dp,suddenExpansion1.m_flow,suddenExpansion1.port_b_T,suddenExpansion2.dp,suddenExpansion2.m_flow,suddenExpansion2.port_b_T Variables in the result:suddenExpansion1.dp,suddenExpansion1.m_flow,suddenExpansion1.port_b_T,suddenExpansion2.dp,suddenExpansion2.m_flow,suddenExpansion2.port_b_T,time [Calling sys.exit(0), Time elapsed: 13.861999575980008]