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.001925/0.001925, allocations: 118 kB / 18.46 MB, free: 4.562 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.00229/0.00229, allocations: 213.6 kB / 21.42 MB, free: 1.605 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.503/1.503, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.001523/0.001523, allocations: 40.08 kB / 374.1 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1133, allocations: 53.33 MB / 427.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2775/0.3908, allocations: 63.43 MB / 490.9 MB, free: 14.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03107/0.4219, allocations: 22.51 MB / 0.5014 GB, free: 10.57 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002071/0.424, allocations: 39.62 kB / 0.5014 GB, free: 10.53 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002427/0.4264, allocations: 0.7296 MB / 0.5021 GB, free: 9.793 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01938/0.4458, allocations: 5.833 MB / 0.5078 GB, free: 3.961 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01101/0.4568, allocations: 3.478 MB / 0.5112 GB, free: 500 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01784/0.4746, allocations: 9.063 MB / 0.5201 GB, free: 7.309 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.476, allocations: 0.5987 MB / 0.5207 GB, free: 6.699 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002505/0.4785, allocations: 1.09 MB / 0.5217 GB, free: 5.605 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00144/0.48, allocations: 0.8518 MB / 0.5226 GB, free: 4.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002021/0.4802, allocations: 92 kB / 0.5226 GB, free: 4.66 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01719/0.4974, allocations: 7.696 MB / 0.5302 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006166/0.498, allocations: 294.8 kB / 0.5304 GB, free: 12.67 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001246/0.4992, allocations: 0.7114 MB / 0.5311 GB, free: 11.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01741/0.5167, allocations: 5.778 MB / 0.5368 GB, free: 6.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.5167, allocations: 3.938 kB / 0.5368 GB, free: 6.156 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.5167, allocations: 0 / 0.5368 GB, free: 6.156 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.767e-05/0.5167, allocations: 0 / 0.5368 GB, free: 6.156 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.007723/0.5244, allocations: 2.539 MB / 0.5393 GB, free: 3.555 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.5245, allocations: 8.031 kB / 0.5393 GB, free: 3.547 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005005/0.5295, allocations: 0.6673 MB / 0.5399 GB, free: 2.879 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/0.5319, allocations: 1.044 MB / 0.5409 GB, free: 1.789 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.391e-05/0.532, allocations: 74.39 kB / 0.541 GB, free: 1.715 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001749/0.5321, allocations: 103.9 kB / 0.5411 GB, free: 1.613 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004048/0.5362, allocations: 1.674 MB / 0.5427 GB, free: 15.79 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/0.5362, allocations: 7.938 kB / 0.5427 GB, free: 15.78 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.5363, allocations: 44 kB / 0.5428 GB, free: 15.73 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.741e-05/0.5364, allocations: 28 kB / 0.5428 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003619/0.54, allocations: 1.463 MB / 0.5442 GB, free: 14.25 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01098/0.551, allocations: 8.406 MB / 0.5525 GB, free: 5.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00334/0.5543, allocations: 1.63 MB / 0.554 GB, free: 3.434 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000657/0.555, allocations: 367.4 kB / 0.5544 GB, free: 3.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3648/0.9197, allocations: 70.66 MB / 0.6234 GB, free: 169.6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.9198, allocations: 44.12 kB / 0.6234 GB, free: 169.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=77): time 2.384e-06/0.9198, allocations: 0 / 0.6234 GB, free: 169.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=77): time 0.006295/0.9261, allocations: 1.992 MB / 0.6254 GB, free: 169.4 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.856e-05/0.9261, allocations: 190.5 kB / 0.6256 GB, free: 169.2 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/0.9275, allocations: 0.9638 MB / 0.6265 GB, free: 169 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.819e-05/0.9276, allocations: 40.77 kB / 0.6265 GB, free: 169 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000366/0.9279, allocations: 0.5857 MB / 0.6271 GB, free: 168.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002109/0.9282, allocations: 284.3 kB / 0.6274 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003321/0.9285, allocations: 244.8 kB / 0.6276 GB, free: 168.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 7.876e-05/0.9286, allocations: 351.9 kB / 0.628 GB, free: 168.2 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005324/0.9291, allocations: 301.9 kB / 0.6282 GB, free: 168.1 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007719/0.9299, allocations: 0.7417 MB / 0.629 GB, free: 167.4 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.9312, allocations: 1.094 MB / 0.63 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.9312, allocations: 4.719 kB / 0.63 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0022/0.9334, allocations: 1.241 MB / 0.6313 GB, free: 166 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.9334, allocations: 18.55 kB / 0.6313 GB, free: 166 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/0.9334, allocations: 16.81 kB / 0.6313 GB, free: 166 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003395/0.9368, allocations: 0.5166 MB / 0.6318 GB, free: 166 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.9379, allocations: 282.1 kB / 0.6321 GB, free: 165.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008627/0.9388, allocations: 1.373 MB / 0.6334 GB, free: 164.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008167/0.9396, allocations: 137.8 kB / 0.6335 GB, free: 164.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.721e-05/0.9397, allocations: 67.36 kB / 0.6336 GB, free: 164.6 MB / 0.5137 GB 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.0004691/0.9402, allocations: 295 kB / 0.6339 GB, free: 164.4 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002375/0.9404, allocations: 129.5 kB / 0.634 GB, free: 164.4 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004764/0.9452, allocations: 4.414 MB / 0.6383 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.67e-05/0.9452, allocations: 46.52 kB / 0.6384 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.9452, allocations: 0 / 0.6384 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.9452, allocations: 5.844 kB / 0.6384 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005285/0.9505, allocations: 4.895 MB / 0.6431 GB, free: 159.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.9505, allocations: 1.188 kB / 0.6431 GB, free: 159.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007925/0.9513, allocations: 165.8 kB / 0.6433 GB, free: 159.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001427/0.9528, allocations: 0.6714 MB / 0.644 GB, free: 159.5 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.285e-05/0.9528, allocations: 28.8 kB / 0.644 GB, free: 159.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.954, allocations: 1.756 MB / 0.6457 GB, free: 158.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.954, allocations: 0 / 0.6457 GB, free: 158.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00249/0.9565, allocations: 1.986 MB / 0.6476 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003583/0.9568, allocations: 274.1 kB / 0.6479 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001669/0.957, allocations: 42.61 kB / 0.6479 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004935/0.9575, allocations: 21.78 kB / 0.648 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.279e-05/0.9576, allocations: 56.05 kB / 0.648 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.895e-05/0.9577, allocations: 29.61 kB / 0.648 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001043/0.9587, allocations: 0.8349 MB / 0.6489 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.9587, allocations: 0 / 0.6489 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003975/0.9627, allocations: 1.298 MB / 0.6501 GB, free: 156.4 MB / 0.5137 GB 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.00424/0.9669, allocations: 1.251 MB / 0.6514 GB, free: 156 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002537/0.9695, allocations: 1.214 MB / 0.6525 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.9695, allocations: 1.125 kB / 0.6525 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.9709, allocations: 0.731 MB / 0.6533 GB, free: 155 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003256/0.9741, allocations: 0.7258 MB / 0.654 GB, free: 154.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003731/0.9779, allocations: 3.144 MB / 0.657 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000526/0.9784, allocations: 1.316 MB / 0.6583 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.9787, allocations: 119.4 kB / 0.6584 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of SimCode: time 9.32e-07/0.9787, allocations: 0 / 0.6584 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of Templates: time 0.05186/1.031, allocations: 51.31 MB / 0.7085 GB, free: 98.91 MB / 0.5137 GB " [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/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_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.97192766299122]