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.001279/0.001279, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.001398/0.001398, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.426/1.426, allocations: 230.2 MB / 254.5 MB, free: 15.4 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.001761/0.001761, allocations: 63.89 kB / 373.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1163, allocations: 53.32 MB / 426.6 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2489/0.3651, allocations: 63.43 MB / 490.1 MB, free: 3.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02747/0.3926, allocations: 22.5 MB / 0.5006 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001504/0.3941, allocations: 27.59 kB / 0.5006 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001914/0.396, allocations: 0.7437 MB / 0.5013 GB, free: 1.242 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01572/0.4117, allocations: 5.827 MB / 0.507 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009304/0.421, allocations: 3.466 MB / 0.5104 GB, free: 10.49 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01618/0.4372, allocations: 9.069 MB / 0.5193 GB, free: 2.02 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.4385, allocations: 0.6064 MB / 0.5198 GB, free: 1.398 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002059/0.4406, allocations: 1.07 MB / 0.5209 GB, free: 332 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00112/0.4417, allocations: 0.8558 MB / 0.5217 GB, free: 15.46 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001494/0.4419, allocations: 92 kB / 0.5218 GB, free: 15.37 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01513/0.457, allocations: 7.691 MB / 0.5293 GB, free: 7.676 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005025/0.4575, allocations: 294.7 kB / 0.5296 GB, free: 7.387 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0011/0.4586, allocations: 0.7115 MB / 0.5303 GB, free: 6.672 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01321/0.4718, allocations: 5.782 MB / 0.5359 GB, free: 0.875 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4718, allocations: 0 / 0.5359 GB, free: 0.875 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4718, allocations: 0 / 0.5359 GB, free: 0.875 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.768e-05/0.4718, allocations: 0 / 0.5359 GB, free: 0.875 MB / 430.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.006544/0.4784, allocations: 2.539 MB / 0.5384 GB, free: 14.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.4784, allocations: 16.03 kB / 0.5384 GB, free: 14.26 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000195/0.4786, allocations: 152.5 kB / 0.5386 GB, free: 14.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004623/0.4832, allocations: 0.6673 MB / 0.5392 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002201/0.4854, allocations: 1.04 MB / 0.5403 GB, free: 12.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.016e-05/0.4855, allocations: 76.08 kB / 0.5403 GB, free: 12.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.4857, allocations: 103.9 kB / 0.5404 GB, free: 12.17 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003582/0.4892, allocations: 1.674 MB / 0.5421 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.4893, allocations: 7.938 kB / 0.5421 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.763e-05/0.4894, allocations: 44 kB / 0.5421 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.833e-05/0.4894, allocations: 28 kB / 0.5421 GB, free: 10.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003293/0.4927, allocations: 1.463 MB / 0.5436 GB, free: 8.801 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009622/0.5023, allocations: 8.41 MB / 0.5518 GB, free: 15.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003031/0.5053, allocations: 1.64 MB / 0.5534 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005722/0.5059, allocations: 362.6 kB / 0.5537 GB, free: 13.62 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1283/0.6342, allocations: 70.65 MB / 0.6227 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.794e-05/0.6342, allocations: 39.12 kB / 0.6228 GB, free: 14 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=77): time 2.485e-06/0.6342, allocations: 0 / 0.6228 GB, free: 14 MB / 0.5294 GB Notification: Performance of matching and sorting (n=77): time 0.005665/0.6399, allocations: 2.003 MB / 0.6247 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.64, allocations: 188.5 kB / 0.6249 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001199/0.6412, allocations: 0.9646 MB / 0.6258 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.818e-05/0.6413, allocations: 37.7 kB / 0.6259 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004648/0.6417, allocations: 0.5819 MB / 0.6264 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002411/0.642, allocations: 289.6 kB / 0.6267 GB, free: 9.848 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003098/0.6423, allocations: 242.8 kB / 0.6269 GB, free: 9.605 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.6424, allocations: 341.9 kB / 0.6273 GB, free: 9.266 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005316/0.643, allocations: 306.5 kB / 0.6276 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008847/0.6438, allocations: 0.7433 MB / 0.6283 GB, free: 8.016 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.6453, allocations: 1.097 MB / 0.6294 GB, free: 6.727 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.6453, allocations: 4.875 kB / 0.6294 GB, free: 6.723 MB / 0.5294 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002051/0.6474, allocations: 1.257 MB / 0.6306 GB, free: 5.453 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.6474, allocations: 8.625 kB / 0.6306 GB, free: 5.445 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.6474, allocations: 16 kB / 0.6306 GB, free: 5.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003133/0.6505, allocations: 0.5217 MB / 0.6311 GB, free: 4.906 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.6516, allocations: 275.6 kB / 0.6314 GB, free: 4.637 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.6527, allocations: 1.372 MB / 0.6327 GB, free: 3.215 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007185/0.6534, allocations: 135 kB / 0.6329 GB, free: 3.082 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.706e-05/0.6535, allocations: 68.89 kB / 0.6329 GB, free: 3.016 MB / 0.5294 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.0004572/0.654, allocations: 300.2 kB / 0.6332 GB, free: 2.715 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002227/0.6542, allocations: 135.1 kB / 0.6333 GB, free: 2.582 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1792/0.8334, allocations: 4.408 MB / 0.6376 GB, free: 191.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.61e-05/0.8335, allocations: 43.88 kB / 0.6377 GB, free: 191.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.8335, allocations: 3.969 kB / 0.6377 GB, free: 191.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.8335, allocations: 5.062 kB / 0.6377 GB, free: 191.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005757/0.8393, allocations: 4.884 MB / 0.6425 GB, free: 189 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.8393, allocations: 3.75 kB / 0.6425 GB, free: 189 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008434/0.8401, allocations: 168 kB / 0.6426 GB, free: 189 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001687/0.8418, allocations: 0.6657 MB / 0.6433 GB, free: 188.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.265e-05/0.8419, allocations: 25.44 kB / 0.6433 GB, free: 188.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.8431, allocations: 1.758 MB / 0.645 GB, free: 187.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.8431, allocations: 0.5312 kB / 0.645 GB, free: 187.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002986/0.8461, allocations: 1.99 MB / 0.647 GB, free: 186.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004392/0.8466, allocations: 272.7 kB / 0.6472 GB, free: 186.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000182/0.8467, allocations: 48.44 kB / 0.6473 GB, free: 186.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004632/0.8472, allocations: 18.06 kB / 0.6473 GB, free: 186.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.8473, allocations: 55.89 kB / 0.6473 GB, free: 186.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.596e-05/0.8474, allocations: 32 kB / 0.6474 GB, free: 186.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001311/0.8487, allocations: 0.8333 MB / 0.6482 GB, free: 185.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.8487, allocations: 0 / 0.6482 GB, free: 185.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003943/0.8526, allocations: 1.294 MB / 0.6494 GB, free: 185.8 MB / 0.5294 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.007093/0.8597, allocations: 3.714 MB / 0.6531 GB, free: 184.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002748/0.8625, allocations: 1.206 MB / 0.6543 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.8625, allocations: 0 / 0.6543 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.8639, allocations: 0.7254 MB / 0.655 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003297/0.8672, allocations: 0.7268 MB / 0.6557 GB, free: 183.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01625/0.8835, allocations: 11.14 MB / 0.6665 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.8845, allocations: 1.321 MB / 0.6678 GB, free: 176.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001647/0.8862, allocations: 0.631 MB / 0.6685 GB, free: 176.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000679/0.8869, allocations: 0.6678 MB / 0.6691 GB, free: 176.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.663e-06/0.8869, allocations: 0 / 0.6691 GB, free: 176.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1026/0.9895, allocations: 73.16 MB / 0.7406 GB, free: 107.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.11/18.1, allocations: 8 kB / 0.7406 GB, free: 107.2 MB / 0.5294 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.820233759004623]