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.0008058/0.0008058, allocations: 88.33 kB / 20.67 MB, free: 3.875 MB / 18.57 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.0008029/0.0008029, allocations: 160.9 kB / 23.95 MB, free: 0.5977 MB / 18.57 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 0.884/0.884, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 1.182e-06/1.182e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.027e-05/1.145e-05, allocations: 2.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.03885/0.03887, allocations: 57.13 MB / 381.6 MB, free: 6.551 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01777/0.05663, allocations: 20.09 MB / 401.7 MB, free: 2.391 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001321/0.05795, allocations: 43.56 kB / 401.8 MB, free: 2.348 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001677/0.05963, allocations: 0.6749 MB / 402.4 MB, free: 1.668 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01109/0.07072, allocations: 5.922 MB / 408.4 MB, free: 11.74 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007328/0.07805, allocations: 3.497 MB / 411.9 MB, free: 8.242 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01038/0.08843, allocations: 9.159 MB / 421 MB, free: 14.96 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001187/0.08961, allocations: 0.5873 MB / 421.6 MB, free: 14.36 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00282/0.09243, allocations: 1.426 MB / 423 MB, free: 12.93 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.09353, allocations: 0.705 MB / 423.7 MB, free: 12.23 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000189/0.09372, allocations: 92 kB / 423.8 MB, free: 12.14 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01085/0.1046, allocations: 7.315 MB / 431.1 MB, free: 4.816 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004025/0.105, allocations: 294.7 kB / 431.4 MB, free: 4.527 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008047/0.1058, allocations: 0.495 MB / 431.9 MB, free: 4.031 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.1177, allocations: 6.913 MB / 438.8 MB, free: 13.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.1177, allocations: 0 / 438.8 MB, free: 13.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1177, allocations: 0 / 438.8 MB, free: 13.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.043e-05/0.1178, allocations: 0 / 438.8 MB, free: 13.1 MB / 410.7 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.004603/0.1224, allocations: 2.452 MB / 441.3 MB, free: 10.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.1224, allocations: 11.98 kB / 441.3 MB, free: 10.59 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000151/0.1226, allocations: 156.5 kB / 441.5 MB, free: 10.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002557/0.1251, allocations: 0.6595 MB / 442.1 MB, free: 9.773 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001625/0.1268, allocations: 0.9675 MB / 443.1 MB, free: 8.781 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.72e-05/0.1268, allocations: 78.39 kB / 443.2 MB, free: 8.703 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.336e-05/0.1269, allocations: 96.38 kB / 443.2 MB, free: 8.609 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0026/0.1295, allocations: 1.977 MB / 445.2 MB, free: 6.406 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.1295, allocations: 15.92 kB / 445.2 MB, free: 6.391 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.261e-05/0.1296, allocations: 44 kB / 445.3 MB, free: 6.348 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.1296, allocations: 28 kB / 445.3 MB, free: 6.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002058/0.1317, allocations: 1.455 MB / 446.8 MB, free: 4.867 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1507/0.2824, allocations: 6.373 MB / 453.1 MB, free: 117.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002209/0.2846, allocations: 1.029 MB / 454.2 MB, free: 117.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004832/0.2851, allocations: 356.7 kB / 454.5 MB, free: 117.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05272/0.3378, allocations: 34.82 MB / 489.3 MB, free: 87.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.3379, allocations: 47.06 kB / 489.4 MB, free: 87.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=77): time 2.735e-06/0.3379, allocations: 0 / 489.4 MB, free: 87.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=77): time 0.00336/0.3412, allocations: 1.915 MB / 491.3 MB, free: 85.78 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.3413, allocations: 192.7 kB / 491.5 MB, free: 85.55 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008148/0.3421, allocations: 0.987 MB / 492.5 MB, free: 84.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.923e-05/0.3422, allocations: 40.66 kB / 492.5 MB, free: 84.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/0.3424, allocations: 0.5767 MB / 493.1 MB, free: 84 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.3425, allocations: 289 kB / 493.4 MB, free: 83.76 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001826/0.3427, allocations: 243.9 kB / 493.6 MB, free: 83.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.826e-05/0.3428, allocations: 345.9 kB / 493.9 MB, free: 83.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003231/0.3431, allocations: 298.5 kB / 494.2 MB, free: 82.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004587/0.3435, allocations: 0.851 MB / 495.1 MB, free: 81.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008459/0.3444, allocations: 1.097 MB / 496.2 MB, free: 80.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.3444, allocations: 4 kB / 496.2 MB, free: 80.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00141/0.3458, allocations: 1.245 MB / 497.4 MB, free: 79.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/0.3458, allocations: 16.03 kB / 497.5 MB, free: 79.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.3459, allocations: 19.94 kB / 497.5 MB, free: 79.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00157/0.3474, allocations: 0.5157 MB / 498 MB, free: 78.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005162/0.348, allocations: 275.5 kB / 498.3 MB, free: 78.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000601/0.3486, allocations: 1.375 MB / 499.6 MB, free: 77.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007223/0.3493, allocations: 134.9 kB / 499.8 MB, free: 76.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.906e-05/0.3493, allocations: 68.03 kB / 499.8 MB, free: 76.89 MB / 410.7 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.0004551/0.3498, allocations: 291.1 kB / 0.4884 GB, free: 76.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/0.35, allocations: 131.2 kB / 0.4885 GB, free: 76.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002675/0.3527, allocations: 4.644 MB / 0.4931 GB, free: 71.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.377e-05/0.3527, allocations: 47.92 kB / 0.4931 GB, free: 71.83 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.3527, allocations: 5.25 kB / 0.4931 GB, free: 71.83 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.3527, allocations: 3.984 kB / 0.4931 GB, free: 71.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003346/0.3561, allocations: 4.446 MB / 0.4974 GB, free: 67.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.395e-06/0.3561, allocations: 0 / 0.4974 GB, free: 67.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004413/0.3565, allocations: 169 kB / 0.4976 GB, free: 67.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007117/0.3572, allocations: 0.6772 MB / 0.4983 GB, free: 66.53 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.18e-05/0.3573, allocations: 19.98 kB / 0.4983 GB, free: 66.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007572/0.358, allocations: 1.781 MB / 0.5 GB, free: 64.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.358, allocations: 0 / 0.5 GB, free: 64.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.3595, allocations: 2.035 MB / 0.502 GB, free: 62.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000254/0.3598, allocations: 192.5 kB / 0.5022 GB, free: 62.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.3599, allocations: 43.88 kB / 0.5022 GB, free: 62.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002714/0.3601, allocations: 24.09 kB / 0.5023 GB, free: 62.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.189e-05/0.3602, allocations: 62.27 kB / 0.5023 GB, free: 62.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.45e-05/0.3602, allocations: 43.97 kB / 0.5024 GB, free: 62.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006514/0.3609, allocations: 0.8225 MB / 0.5032 GB, free: 61.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3609, allocations: 0 / 0.5032 GB, free: 61.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002933/0.3638, allocations: 1.303 MB / 0.5044 GB, free: 60.15 MB / 410.7 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.005132/0.369, allocations: 3.884 MB / 0.5082 GB, free: 56.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001658/0.3706, allocations: 1.243 MB / 0.5094 GB, free: 55.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.3706, allocations: 0 / 0.5094 GB, free: 55.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007637/0.3714, allocations: 0.7411 MB / 0.5102 GB, free: 54.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/0.3733, allocations: 0.7171 MB / 0.5109 GB, free: 53.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.3835, allocations: 11.17 MB / 0.5218 GB, free: 41.95 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.3838, allocations: 0.7353 MB / 0.5225 GB, free: 41.17 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008297/0.3846, allocations: 0.6326 MB / 0.5231 GB, free: 40.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004288/0.3851, allocations: 0.6682 MB / 0.5238 GB, free: 39.89 MB / 410.7 MB Notification: Performance of SimCode: time 2.024e-06/0.3851, allocations: 0 / 0.5238 GB, free: 39.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08319/0.4682, allocations: 75.47 MB / 0.5975 GB, free: 12.84 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/10.64, allocations: 4.062 kB / 0.5975 GB, free: 12.83 MB / 458.7 MB " [Timeout remaining time 649] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins/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: 13.237453273497522]