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.001386/0.001386, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001445/0.001445, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.467/1.467, allocations: 225.7 MB / 253.3 MB, free: 12.81 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.001829/0.001829, allocations: 47.91 kB / 371.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2683, allocations: 52.18 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06985/0.3382, allocations: 57.37 MB / 481.2 MB, free: 4.902 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03405/0.3722, allocations: 20.09 MB / 0.4895 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001614/0.3738, allocations: 47.56 kB / 0.4896 GB, free: 0.707 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002546/0.3764, allocations: 0.6713 MB / 0.4902 GB, free: 32 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01786/0.3942, allocations: 5.801 MB / 0.4959 GB, free: 10.22 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01009/0.4043, allocations: 3.419 MB / 0.4992 GB, free: 6.805 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01812/0.4225, allocations: 9.086 MB / 0.5081 GB, free: 13.61 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001395/0.4239, allocations: 0.5795 MB / 0.5087 GB, free: 13.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002548/0.4264, allocations: 1.078 MB / 0.5097 GB, free: 11.93 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001419/0.4278, allocations: 0.8128 MB / 0.5105 GB, free: 11.12 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.428, allocations: 92 kB / 0.5106 GB, free: 11.03 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01545/0.4435, allocations: 7.282 MB / 0.5177 GB, free: 3.738 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005085/0.444, allocations: 286.8 kB / 0.518 GB, free: 3.457 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.445, allocations: 0.5989 MB / 0.5186 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01319/0.4582, allocations: 5.758 MB / 0.5242 GB, free: 13.08 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4582, allocations: 0 / 0.5242 GB, free: 13.08 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4582, allocations: 0 / 0.5242 GB, free: 13.08 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.301e-05/0.4582, allocations: 3.938 kB / 0.5242 GB, free: 13.08 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.007326/0.4655, allocations: 2.448 MB / 0.5266 GB, free: 10.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.4656, allocations: 12.03 kB / 0.5266 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004933/0.4705, allocations: 0.6595 MB / 0.5272 GB, free: 9.914 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002341/0.4728, allocations: 0.972 MB / 0.5282 GB, free: 8.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.589e-05/0.4729, allocations: 82.39 kB / 0.5283 GB, free: 8.828 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/0.4731, allocations: 99.94 kB / 0.5284 GB, free: 8.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004217/0.4773, allocations: 1.976 MB / 0.5303 GB, free: 6.531 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.081e-05/0.4773, allocations: 7.938 kB / 0.5303 GB, free: 6.523 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001146/0.4774, allocations: 48 kB / 0.5304 GB, free: 6.477 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.545e-05/0.4775, allocations: 28 kB / 0.5304 GB, free: 6.449 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003613/0.4811, allocations: 1.451 MB / 0.5318 GB, free: 4.996 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2333/0.7144, allocations: 6.255 MB / 0.5379 GB, free: 111.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003265/0.7176, allocations: 1.027 MB / 0.5389 GB, free: 111.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006112/0.7182, allocations: 370 kB / 0.5393 GB, free: 111.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1073/0.8256, allocations: 33.5 MB / 0.572 GB, free: 84.24 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.049e-05/0.8256, allocations: 45.12 kB / 0.572 GB, free: 84.19 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 3.196e-06/0.8256, allocations: 0 / 0.572 GB, free: 84.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005252/0.8309, allocations: 1.896 MB / 0.5739 GB, free: 82.35 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/0.8309, allocations: 200.2 kB / 0.5741 GB, free: 82.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008471/0.8318, allocations: 0.8255 MB / 0.5749 GB, free: 81.31 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.843e-05/0.8318, allocations: 45.7 kB / 0.5749 GB, free: 81.26 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002984/0.8321, allocations: 0.5953 MB / 0.5755 GB, free: 80.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.8323, allocations: 291.5 kB / 0.5758 GB, free: 80.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002485/0.8325, allocations: 238.8 kB / 0.576 GB, free: 80.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.121e-05/0.8326, allocations: 349.9 kB / 0.5763 GB, free: 79.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004405/0.8331, allocations: 302.5 kB / 0.5766 GB, free: 79.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006544/0.8337, allocations: 0.8392 MB / 0.5774 GB, free: 78.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.8348, allocations: 1.103 MB / 0.5785 GB, free: 77.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.8348, allocations: 4 kB / 0.5785 GB, free: 77.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001777/0.8366, allocations: 1.224 MB / 0.5797 GB, free: 76.05 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.8366, allocations: 12 kB / 0.5797 GB, free: 76.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.8366, allocations: 12 kB / 0.5797 GB, free: 76.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003061/0.8397, allocations: 0.5235 MB / 0.5803 GB, free: 75.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009912/0.8407, allocations: 279.6 kB / 0.5805 GB, free: 75.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007837/0.8415, allocations: 1.383 MB / 0.5819 GB, free: 73.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008064/0.8423, allocations: 119.8 kB / 0.582 GB, free: 73.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.974e-05/0.8424, allocations: 64.03 kB / 0.582 GB, free: 73.64 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.000481/0.8428, allocations: 300.5 kB / 0.5823 GB, free: 73.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/0.843, allocations: 115.3 kB / 0.5824 GB, free: 73.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003767/0.8468, allocations: 4.608 MB / 0.5869 GB, free: 68.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.817e-05/0.8468, allocations: 43.94 kB / 0.587 GB, free: 68.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.8468, allocations: 0 / 0.587 GB, free: 68.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.8469, allocations: 11.86 kB / 0.587 GB, free: 68.63 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004428/0.8513, allocations: 4.272 MB / 0.5912 GB, free: 64.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/0.8513, allocations: 0 / 0.5912 GB, free: 64.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007873/0.8521, allocations: 171.7 kB / 0.5913 GB, free: 64.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001288/0.8534, allocations: 0.6761 MB / 0.592 GB, free: 63.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.722e-05/0.8534, allocations: 20 kB / 0.592 GB, free: 63.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00109/0.8545, allocations: 1.787 MB / 0.5938 GB, free: 61.67 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.8545, allocations: 0 / 0.5938 GB, free: 61.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00225/0.8568, allocations: 2.011 MB / 0.5957 GB, free: 59.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003521/0.8571, allocations: 186.6 kB / 0.5959 GB, free: 59.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.8573, allocations: 45.28 kB / 0.5959 GB, free: 59.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004571/0.8577, allocations: 31.86 kB / 0.596 GB, free: 59.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.861e-05/0.8578, allocations: 56.56 kB / 0.596 GB, free: 59.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.155e-05/0.8579, allocations: 31.97 kB / 0.5961 GB, free: 59.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000861/0.8587, allocations: 0.7166 MB / 0.5968 GB, free: 58.58 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8587, allocations: 0 / 0.5968 GB, free: 58.58 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004943/0.8637, allocations: 1.312 MB / 0.598 GB, free: 57.27 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.004898/0.8686, allocations: 1.27 MB / 0.5993 GB, free: 56.12 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002741/0.8713, allocations: 1.229 MB / 0.6005 GB, free: 54.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/0.8713, allocations: 4 kB / 0.6005 GB, free: 54.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001532/0.8729, allocations: 0.7445 MB / 0.6012 GB, free: 54.14 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003113/0.876, allocations: 0.5878 MB / 0.6018 GB, free: 53.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003963/0.8799, allocations: 3.157 MB / 0.6049 GB, free: 50.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005096/0.8804, allocations: 0.7343 MB / 0.6056 GB, free: 49.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/0.8807, allocations: 115.4 kB / 0.6057 GB, free: 49.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.172e-06/0.8807, allocations: 0 / 0.6057 GB, free: 49.5 MB / 446.1 MB Notification: Performance of Templates: time 0.0565/0.9372, allocations: 50.4 MB / 0.6549 GB, free: 15.13 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: 12.956912402063608]