Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002001/0.002001, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002536/0.002536, allocations: 214.3 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 47.92 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3131, allocations: 53.37 MB / 431.6 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07009/0.3831, allocations: 57.55 MB / 489.1 MB, free: 12.86 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02933/0.4125, allocations: 20.09 MB / 0.4973 GB, free: 8.703 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001631/0.4141, allocations: 39.62 kB / 0.4973 GB, free: 8.664 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002384/0.4165, allocations: 0.6635 MB / 0.4979 GB, free: 7.996 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0172/0.4337, allocations: 5.818 MB / 0.5036 GB, free: 2.176 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01001/0.4437, allocations: 3.429 MB / 0.507 GB, free: 14.75 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01827/0.462, allocations: 9.094 MB / 0.5159 GB, free: 5.535 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001482/0.4635, allocations: 0.5881 MB / 0.5164 GB, free: 4.938 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002347/0.4658, allocations: 1.074 MB / 0.5175 GB, free: 3.859 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.467, allocations: 0.8088 MB / 0.5183 GB, free: 3.047 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.4672, allocations: 92 kB / 0.5184 GB, free: 2.957 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01498/0.4821, allocations: 7.286 MB / 0.5255 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005657/0.4827, allocations: 298.8 kB / 0.5258 GB, free: 11.37 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.4839, allocations: 0.5912 MB / 0.5263 GB, free: 10.78 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01454/0.4984, allocations: 5.778 MB / 0.532 GB, free: 4.984 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.4984, allocations: 3.938 kB / 0.532 GB, free: 4.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4984, allocations: 0 / 0.532 GB, free: 4.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.153e-05/0.4985, allocations: 0 / 0.532 GB, free: 4.98 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.006834/0.5053, allocations: 2.454 MB / 0.5344 GB, free: 2.484 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.5053, allocations: 15.97 kB / 0.5344 GB, free: 2.469 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004792/0.5101, allocations: 0.6556 MB / 0.535 GB, free: 1.812 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002207/0.5123, allocations: 0.9644 MB / 0.536 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.21e-05/0.5124, allocations: 78.39 kB / 0.5361 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.5126, allocations: 103.9 kB / 0.5362 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2119/0.7245, allocations: 1.972 MB / 0.5381 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.554e-05/0.7245, allocations: 6.688 kB / 0.5381 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/0.7246, allocations: 43.28 kB / 0.5381 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.932e-05/0.7247, allocations: 26.78 kB / 0.5382 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003463/0.7281, allocations: 1.46 MB / 0.5396 GB, free: 107.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007555/0.7357, allocations: 6.26 MB / 0.5457 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00253/0.7382, allocations: 1.03 MB / 0.5467 GB, free: 102.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004746/0.7387, allocations: 360.8 kB / 0.547 GB, free: 102.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1056/0.8443, allocations: 34.83 MB / 0.5811 GB, free: 70.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/0.8443, allocations: 47 kB / 0.5811 GB, free: 70.83 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.275e-06/0.8443, allocations: 0 / 0.5811 GB, free: 70.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005051/0.8494, allocations: 1.902 MB / 0.583 GB, free: 68.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.8494, allocations: 188.4 kB / 0.5831 GB, free: 68.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007409/0.8502, allocations: 0.8316 MB / 0.5839 GB, free: 67.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.8502, allocations: 41.7 kB / 0.584 GB, free: 67.81 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.8505, allocations: 0.5978 MB / 0.5846 GB, free: 67.26 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.8506, allocations: 281.5 kB / 0.5848 GB, free: 67.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002261/0.8508, allocations: 234.8 kB / 0.5851 GB, free: 66.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.04e-05/0.8509, allocations: 353.9 kB / 0.5854 GB, free: 66.44 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004264/0.8513, allocations: 302.5 kB / 0.5857 GB, free: 66.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006048/0.8519, allocations: 0.8401 MB / 0.5865 GB, free: 65.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.853, allocations: 1.094 MB / 0.5876 GB, free: 63.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.853, allocations: 4 kB / 0.5876 GB, free: 63.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001613/0.8546, allocations: 1.235 MB / 0.5888 GB, free: 62.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.8546, allocations: 8 kB / 0.5888 GB, free: 62.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.8546, allocations: 16 kB / 0.5888 GB, free: 62.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002987/0.8576, allocations: 0.5276 MB / 0.5893 GB, free: 61.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009451/0.8586, allocations: 283.6 kB / 0.5896 GB, free: 61.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007531/0.8593, allocations: 1.376 MB / 0.5909 GB, free: 60.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006507/0.86, allocations: 112.6 kB / 0.591 GB, free: 60.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.541e-05/0.8601, allocations: 68.03 kB / 0.5911 GB, free: 60.14 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.0003979/0.8605, allocations: 298.7 kB / 0.5914 GB, free: 59.85 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.8606, allocations: 115.3 kB / 0.5915 GB, free: 59.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003502/0.8641, allocations: 4.605 MB / 0.596 GB, free: 55.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.76e-05/0.8642, allocations: 43.94 kB / 0.596 GB, free: 55.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.8642, allocations: 0 / 0.596 GB, free: 55.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.8642, allocations: 11.92 kB / 0.5961 GB, free: 55.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003813/0.868, allocations: 4.286 MB / 0.6002 GB, free: 50.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.868, allocations: 4 kB / 0.6002 GB, free: 50.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007196/0.8687, allocations: 167.7 kB / 0.6004 GB, free: 50.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.8699, allocations: 0.6722 MB / 0.6011 GB, free: 50.01 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.087e-05/0.87, allocations: 27.92 kB / 0.6011 GB, free: 49.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009456/0.8709, allocations: 1.775 MB / 0.6028 GB, free: 48.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.8709, allocations: 7.938 kB / 0.6028 GB, free: 48.15 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.8728, allocations: 2.003 MB / 0.6048 GB, free: 46.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000235/0.8731, allocations: 180.2 kB / 0.605 GB, free: 45.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.8732, allocations: 55.5 kB / 0.605 GB, free: 45.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004392/0.8736, allocations: 23.94 kB / 0.605 GB, free: 45.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.612e-05/0.8737, allocations: 56.55 kB / 0.6051 GB, free: 45.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.665e-05/0.8738, allocations: 35.97 kB / 0.6051 GB, free: 45.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006882/0.8744, allocations: 0.7206 MB / 0.6058 GB, free: 45.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8744, allocations: 0 / 0.6058 GB, free: 45.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002971/0.8774, allocations: 1.314 MB / 0.6071 GB, free: 43.72 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.003612/0.881, allocations: 1.249 MB / 0.6083 GB, free: 42.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002241/0.8833, allocations: 1.225 MB / 0.6095 GB, free: 41.35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.8833, allocations: 0 / 0.6095 GB, free: 41.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.8845, allocations: 0.7547 MB / 0.6103 GB, free: 40.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002584/0.8871, allocations: 0.5893 MB / 0.6108 GB, free: 40.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003422/0.8905, allocations: 3.104 MB / 0.6139 GB, free: 36.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004843/0.891, allocations: 0.7385 MB / 0.6146 GB, free: 36.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009524/0.8919, allocations: 0.6185 MB / 0.6152 GB, free: 35.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.8921, allocations: 111.4 kB / 0.6153 GB, free: 35.41 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.8921, allocations: 4 kB / 0.6153 GB, free: 35.4 MB / 446.1 MB Notification: Performance of Templates: time 0.07043/0.9626, allocations: 57.23 MB / 0.6712 GB, free: 10.68 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.777485882863402]