Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001303/0.001303, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.001442/0.001442, allocations: 214.9 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 67.91 kB / 377.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2392, allocations: 53.4 MB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06723/0.3064, allocations: 63.99 MB / 495.2 MB, free: 6.484 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03036/0.3368, allocations: 22.59 MB / 0.5056 GB, free: 15.82 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001218/0.338, allocations: 43.56 kB / 0.5057 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002078/0.3401, allocations: 0.7335 MB / 0.5064 GB, free: 15.04 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01465/0.3547, allocations: 5.84 MB / 0.5121 GB, free: 9.191 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00872/0.3635, allocations: 3.499 MB / 0.5155 GB, free: 5.695 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01709/0.3805, allocations: 9.094 MB / 0.5244 GB, free: 12.48 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001384/0.3819, allocations: 0.5835 MB / 0.5249 GB, free: 11.89 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002313/0.3842, allocations: 1.09 MB / 0.526 GB, free: 10.79 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001559/0.3858, allocations: 0.8557 MB / 0.5268 GB, free: 9.934 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002869/0.3861, allocations: 92 kB / 0.5269 GB, free: 9.844 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01556/0.4016, allocations: 7.711 MB / 0.5345 GB, free: 2.125 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000513/0.4022, allocations: 290.8 kB / 0.5347 GB, free: 1.84 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00125/0.4034, allocations: 0.7076 MB / 0.5354 GB, free: 1.129 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2176/0.621, allocations: 5.781 MB / 0.5411 GB, free: 23.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.621, allocations: 0 / 0.5411 GB, free: 23.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.621, allocations: 1.312 kB / 0.5411 GB, free: 23.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.643e-05/0.621, allocations: 0 / 0.5411 GB, free: 23.16 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.007267/0.6283, allocations: 2.464 MB / 0.5435 GB, free: 22.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.6283, allocations: 9.562 kB / 0.5435 GB, free: 22.13 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000183/0.6285, allocations: 155.3 kB / 0.5436 GB, free: 22.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004582/0.6331, allocations: 0.666 MB / 0.5443 GB, free: 22.01 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002207/0.6353, allocations: 0.9633 MB / 0.5452 GB, free: 21.75 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.666e-05/0.6354, allocations: 77.33 kB / 0.5453 GB, free: 21.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.6355, allocations: 97.75 kB / 0.5454 GB, free: 21.74 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00325/0.6388, allocations: 1.676 MB / 0.547 GB, free: 21.36 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.019e-05/0.6388, allocations: 5.156 kB / 0.547 GB, free: 21.36 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/0.6389, allocations: 50.7 kB / 0.5471 GB, free: 21.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.594e-05/0.6389, allocations: 26.25 kB / 0.5471 GB, free: 21.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002856/0.6418, allocations: 1.466 MB / 0.5485 GB, free: 21.36 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007593/0.6494, allocations: 8.055 MB / 0.5564 GB, free: 16.15 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002487/0.6519, allocations: 1.037 MB / 0.5574 GB, free: 16.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004706/0.6523, allocations: 359.5 kB / 0.5578 GB, free: 16.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1063/0.7586, allocations: 34.71 MB / 0.5917 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.765e-05/0.7586, allocations: 41.44 kB / 0.5917 GB, free: 14.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.575e-06/0.7587, allocations: 4 kB / 0.5917 GB, free: 14.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005777/0.7644, allocations: 1.914 MB / 0.5936 GB, free: 12.62 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.7645, allocations: 192.4 kB / 0.5938 GB, free: 12.39 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/0.7658, allocations: 0.9621 MB / 0.5947 GB, free: 11.65 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.429e-05/0.7659, allocations: 46.84 kB / 0.5947 GB, free: 11.61 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004064/0.7663, allocations: 0.5793 MB / 0.5953 GB, free: 11.23 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/0.7665, allocations: 293.8 kB / 0.5956 GB, free: 10.99 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002891/0.7668, allocations: 233.3 kB / 0.5958 GB, free: 10.84 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.767, allocations: 348.8 kB / 0.5961 GB, free: 10.51 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005025/0.7675, allocations: 300.7 kB / 0.5964 GB, free: 10.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008647/0.7683, allocations: 0.7421 MB / 0.5972 GB, free: 9.527 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.7697, allocations: 1.1 MB / 0.5982 GB, free: 8.594 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.7698, allocations: 4 kB / 0.5982 GB, free: 8.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002116/0.7719, allocations: 1.249 MB / 0.5995 GB, free: 7.738 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.7719, allocations: 15.56 kB / 0.5995 GB, free: 7.727 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/0.7719, allocations: 17.38 kB / 0.5995 GB, free: 7.711 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003288/0.7752, allocations: 0.5193 MB / 0.6 GB, free: 7.234 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.7763, allocations: 279.4 kB / 0.6003 GB, free: 6.992 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.7776, allocations: 1.372 MB / 0.6016 GB, free: 5.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008905/0.7784, allocations: 141.3 kB / 0.6017 GB, free: 5.566 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.903e-05/0.7785, allocations: 66.28 kB / 0.6018 GB, free: 5.512 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.0005425/0.7791, allocations: 299.5 kB / 0.6021 GB, free: 5.316 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002642/0.7794, allocations: 131.1 kB / 0.6022 GB, free: 5.188 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004834/0.7842, allocations: 4.6 MB / 0.6067 GB, free: 2.219 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.231e-05/0.7842, allocations: 48.86 kB / 0.6067 GB, free: 2.184 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.7842, allocations: 4 kB / 0.6067 GB, free: 2.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.7843, allocations: 3.984 kB / 0.6068 GB, free: 2.176 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005481/0.7897, allocations: 4.986 MB / 0.6116 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.7897, allocations: 1.75 kB / 0.6116 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008148/0.7906, allocations: 173.2 kB / 0.6118 GB, free: 14.47 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001491/0.792, allocations: 0.6772 MB / 0.6125 GB, free: 13.88 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.982e-05/0.7921, allocations: 29.8 kB / 0.6125 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001448/0.7936, allocations: 1.778 MB / 0.6142 GB, free: 12.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.7936, allocations: 0 / 0.6142 GB, free: 12.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002548/0.7961, allocations: 2.034 MB / 0.6162 GB, free: 10.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004236/0.7965, allocations: 199.8 kB / 0.6164 GB, free: 10.61 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002017/0.7967, allocations: 45.22 kB / 0.6164 GB, free: 10.58 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/0.7972, allocations: 14.62 kB / 0.6164 GB, free: 10.58 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.028e-05/0.7973, allocations: 58.61 kB / 0.6165 GB, free: 10.53 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.608e-05/0.7974, allocations: 35.05 kB / 0.6165 GB, free: 10.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001059/0.7984, allocations: 0.8313 MB / 0.6173 GB, free: 9.895 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7984, allocations: 3.75 kB / 0.6174 GB, free: 9.895 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004893/0.8033, allocations: 1.296 MB / 0.6186 GB, free: 8.668 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.008983/0.8123, allocations: 3.757 MB / 0.6223 GB, free: 5.602 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002703/0.815, allocations: 1.229 MB / 0.6235 GB, free: 4.508 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.815, allocations: 2.844 kB / 0.6235 GB, free: 4.508 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.8165, allocations: 0.7516 MB / 0.6242 GB, free: 3.777 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003354/0.8199, allocations: 0.7142 MB / 0.6249 GB, free: 3.078 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01804/0.8379, allocations: 11.18 MB / 0.6358 GB, free: 7.465 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.8389, allocations: 1.312 MB / 0.6371 GB, free: 6.121 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001368/0.8403, allocations: 0.6281 MB / 0.6377 GB, free: 5.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008237/0.8411, allocations: 0.6711 MB / 0.6384 GB, free: 4.832 MB / 494.1 MB Notification: Performance of SimCode: time 1.382e-06/0.8411, allocations: 0 / 0.6384 GB, free: 4.832 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1353/0.9764, allocations: 74.93 MB / 0.7116 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.2/18.18, allocations: 5.953 kB / 0.7116 GB, free: 10.25 MB / 0.5606 GB " [Timeout remaining time 642] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 22.944887353107333]