Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.007497/0.007497, allocations: 106.6 kB / 21.98 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001616/0.001616, allocations: 212.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.485/1.485, allocations: 230.6 MB / 259 MB, free: 8.055 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 63.89 kB / 379.8 MB, free: 2.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.319, allocations: 53.36 MB / 433.2 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07131/0.3903, allocations: 63.99 MB / 497.1 MB, free: 6.781 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02985/0.4202, allocations: 22.6 MB / 0.5076 GB, free: 108 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/0.4217, allocations: 43.56 kB / 0.5076 GB, free: 64 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00218/0.4239, allocations: 0.7296 MB / 0.5083 GB, free: 15.33 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01612/0.44, allocations: 5.832 MB / 0.514 GB, free: 9.488 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009846/0.4499, allocations: 3.508 MB / 0.5174 GB, free: 5.984 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01792/0.4678, allocations: 9.098 MB / 0.5263 GB, free: 12.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001364/0.4691, allocations: 0.5764 MB / 0.5269 GB, free: 12.18 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002505/0.4717, allocations: 1.094 MB / 0.528 GB, free: 11.08 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00148/0.4731, allocations: 0.8558 MB / 0.5288 GB, free: 10.22 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001971/0.4733, allocations: 92 kB / 0.5289 GB, free: 10.13 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01585/0.4892, allocations: 7.707 MB / 0.5364 GB, free: 2.418 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004974/0.4897, allocations: 294.8 kB / 0.5367 GB, free: 2.129 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00113/0.4908, allocations: 0.7114 MB / 0.5374 GB, free: 1.414 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2722/0.763, allocations: 5.776 MB / 0.543 GB, free: 23.21 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.763, allocations: 0 / 0.543 GB, free: 23.21 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.763, allocations: 0 / 0.543 GB, free: 23.21 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.751e-05/0.763, allocations: 0 / 0.543 GB, free: 23.21 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.008924/0.7719, allocations: 2.465 MB / 0.5454 GB, free: 22.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.772, allocations: 9.781 kB / 0.5454 GB, free: 22.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004821/0.7768, allocations: 0.6617 MB / 0.5461 GB, free: 22.1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002149/0.7789, allocations: 0.9678 MB / 0.547 GB, free: 21.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.473e-05/0.779, allocations: 75.95 kB / 0.5471 GB, free: 21.83 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.7791, allocations: 99.38 kB / 0.5472 GB, free: 21.83 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003342/0.7825, allocations: 1.678 MB / 0.5488 GB, free: 21.45 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.7825, allocations: 6.062 kB / 0.5488 GB, free: 21.45 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001/0.7826, allocations: 48.44 kB / 0.5489 GB, free: 21.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.7826, allocations: 27.25 kB / 0.5489 GB, free: 21.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003055/0.7857, allocations: 1.467 MB / 0.5503 GB, free: 21.45 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008021/0.7937, allocations: 8.052 MB / 0.5582 GB, free: 16.25 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002676/0.7964, allocations: 1.034 MB / 0.5592 GB, free: 16.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005919/0.797, allocations: 363.3 kB / 0.5596 GB, free: 16.18 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.107/0.904, allocations: 34.7 MB / 0.5935 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.541e-05/0.904, allocations: 45.44 kB / 0.5935 GB, free: 14.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.775e-06/0.904, allocations: 0 / 0.5935 GB, free: 14.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.006131/0.9101, allocations: 1.914 MB / 0.5954 GB, free: 13.04 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.9103, allocations: 188.4 kB / 0.5955 GB, free: 12.81 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.9117, allocations: 0.9723 MB / 0.5965 GB, free: 12.07 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.296e-05/0.9118, allocations: 42.38 kB / 0.5965 GB, free: 12.03 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004531/0.9122, allocations: 0.5767 MB / 0.5971 GB, free: 11.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002782/0.9125, allocations: 288.4 kB / 0.5974 GB, free: 11.42 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003342/0.9128, allocations: 246.1 kB / 0.5976 GB, free: 11.26 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.913, allocations: 342 kB / 0.5979 GB, free: 10.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005562/0.9136, allocations: 303 kB / 0.5982 GB, free: 10.75 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009791/0.9146, allocations: 0.7473 MB / 0.599 GB, free: 9.945 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.9161, allocations: 1.091 MB / 0.6 GB, free: 9.02 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-06/0.9161, allocations: 8 kB / 0.6 GB, free: 9.012 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002335/0.9185, allocations: 1.247 MB / 0.6012 GB, free: 8.164 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.9185, allocations: 12 kB / 0.6013 GB, free: 8.152 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.9185, allocations: 16 kB / 0.6013 GB, free: 8.137 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003335/0.9218, allocations: 0.5249 MB / 0.6018 GB, free: 7.652 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.923, allocations: 279.2 kB / 0.6021 GB, free: 7.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.9242, allocations: 1.374 MB / 0.6034 GB, free: 6.098 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.9253, allocations: 139.5 kB / 0.6035 GB, free: 5.984 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/0.9254, allocations: 69.72 kB / 0.6036 GB, free: 5.93 MB / 462.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.0005727/0.926, allocations: 285.1 kB / 0.6039 GB, free: 5.738 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002596/0.9262, allocations: 127.2 kB / 0.604 GB, free: 5.613 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005156/0.9314, allocations: 4.613 MB / 0.6085 GB, free: 2.633 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.831e-05/0.9314, allocations: 51.59 kB / 0.6085 GB, free: 2.594 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.9315, allocations: 0 / 0.6085 GB, free: 2.594 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.9315, allocations: 7.734 kB / 0.6085 GB, free: 2.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005956/0.9374, allocations: 4.983 MB / 0.6134 GB, free: 15.04 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.9374, allocations: 4 kB / 0.6134 GB, free: 15.04 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008508/0.9383, allocations: 164.6 kB / 0.6136 GB, free: 14.89 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001515/0.9398, allocations: 0.68 MB / 0.6142 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.999e-05/0.9399, allocations: 26.3 kB / 0.6143 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00154/0.9414, allocations: 1.788 MB / 0.616 GB, free: 12.72 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.9414, allocations: 0 / 0.616 GB, free: 12.72 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.9441, allocations: 2.029 MB / 0.618 GB, free: 11.23 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005005/0.9446, allocations: 200.5 kB / 0.6182 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001959/0.9448, allocations: 47.52 kB / 0.6182 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005105/0.9453, allocations: 15.5 kB / 0.6182 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.483e-05/0.9454, allocations: 58.8 kB / 0.6183 GB, free: 10.95 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.368e-05/0.9455, allocations: 35.36 kB / 0.6183 GB, free: 10.92 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0012/0.9467, allocations: 0.8323 MB / 0.6191 GB, free: 10.31 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.9467, allocations: 0 / 0.6191 GB, free: 10.31 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006125/0.9528, allocations: 1.299 MB / 0.6204 GB, free: 9.082 MB / 478.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.008627/0.9614, allocations: 1.254 MB / 0.6216 GB, free: 7.973 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003056/0.9645, allocations: 1.227 MB / 0.6228 GB, free: 7.137 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.9645, allocations: 0 / 0.6228 GB, free: 7.137 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00164/0.9661, allocations: 0.7483 MB / 0.6236 GB, free: 6.633 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0034/0.9695, allocations: 0.7227 MB / 0.6243 GB, free: 6.023 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004911/0.9744, allocations: 3.168 MB / 0.6274 GB, free: 2.938 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009529/0.9754, allocations: 1.312 MB / 0.6286 GB, free: 1.594 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003407/0.9757, allocations: 123.4 kB / 0.6288 GB, free: 1.473 MB / 478.1 MB Notification: Performance of SimCode: time 7.12e-07/0.9757, allocations: 0 / 0.6288 GB, free: 1.473 MB / 478.1 MB Notification: Performance of Templates: time 0.07561/1.051, allocations: 51.35 MB / 0.6789 GB, free: 14.3 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 13.425112877972424]