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.001192/0.001192, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001367/0.001367, allocations: 218.2 kB / 24.52 MB, free: 3.91 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.34/1.34, allocations: 230.5 MB / 258.2 MB, free: 7.766 MB / 206.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 63.89 kB / 378.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2178, allocations: 53.4 MB / 431.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.0602/0.278, allocations: 57.5 MB / 489.4 MB, free: 12.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02644/0.3045, allocations: 20.06 MB / 0.4975 GB, free: 8.641 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001115/0.3056, allocations: 43.56 kB / 0.4976 GB, free: 8.598 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001878/0.3075, allocations: 0.6712 MB / 0.4982 GB, free: 7.922 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01424/0.3217, allocations: 5.821 MB / 0.5039 GB, free: 2.098 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008697/0.3304, allocations: 3.425 MB / 0.5072 GB, free: 14.67 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01855/0.349, allocations: 9.09 MB / 0.5161 GB, free: 5.461 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001296/0.3503, allocations: 0.5797 MB / 0.5167 GB, free: 4.871 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00234/0.3526, allocations: 1.074 MB / 0.5177 GB, free: 3.793 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001618/0.3542, allocations: 0.8597 MB / 0.5186 GB, free: 2.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002357/0.3545, allocations: 92 kB / 0.5187 GB, free: 2.84 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01493/0.3694, allocations: 7.598 MB / 0.5261 GB, free: 11.23 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005619/0.37, allocations: 294.8 kB / 0.5264 GB, free: 10.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001132/0.3711, allocations: 0.5872 MB / 0.5269 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01391/0.385, allocations: 5.778 MB / 0.5326 GB, free: 4.562 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.385, allocations: 0 / 0.5326 GB, free: 4.562 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.385, allocations: 0 / 0.5326 GB, free: 4.562 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.924e-05/0.385, allocations: 0 / 0.5326 GB, free: 4.562 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.00701/0.392, allocations: 2.46 MB / 0.535 GB, free: 2.059 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.3921, allocations: 8.031 kB / 0.535 GB, free: 2.051 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.972e-05/0.3921, allocations: 26.2 kB / 0.535 GB, free: 2.023 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002119/0.3923, allocations: 156.5 kB / 0.5352 GB, free: 1.863 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004874/0.3972, allocations: 0.6634 MB / 0.5358 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002222/0.3994, allocations: 0.9683 MB / 0.5368 GB, free: 204 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.461e-05/0.3995, allocations: 81.95 kB / 0.5368 GB, free: 120 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.3997, allocations: 96 kB / 0.5369 GB, free: 24 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1808/0.5805, allocations: 1.976 MB / 0.5388 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.777e-05/0.5805, allocations: 5.5 kB / 0.5389 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.5806, allocations: 44.62 kB / 0.5389 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.653e-05/0.5807, allocations: 26.72 kB / 0.5389 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003348/0.584, allocations: 1.465 MB / 0.5404 GB, free: 107.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007251/0.5913, allocations: 6.402 MB / 0.5466 GB, free: 102.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002438/0.5937, allocations: 1.044 MB / 0.5476 GB, free: 102.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000452/0.5942, allocations: 366.3 kB / 0.548 GB, free: 102.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09792/0.6921, allocations: 34.83 MB / 0.582 GB, free: 69.93 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.6921, allocations: 39.06 kB / 0.582 GB, free: 69.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.685e-06/0.6921, allocations: 0 / 0.582 GB, free: 69.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005069/0.6972, allocations: 1.914 MB / 0.5839 GB, free: 67.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.6972, allocations: 192.4 kB / 0.5841 GB, free: 67.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008744/0.6981, allocations: 0.9593 MB / 0.585 GB, free: 66.76 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.453e-05/0.6982, allocations: 41.7 kB / 0.5851 GB, free: 66.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/0.6984, allocations: 0.5843 MB / 0.5856 GB, free: 66.17 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.6986, allocations: 294.3 kB / 0.5859 GB, free: 65.92 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002504/0.6988, allocations: 230.8 kB / 0.5861 GB, free: 65.69 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.417e-05/0.6989, allocations: 345.9 kB / 0.5865 GB, free: 65.35 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004229/0.6993, allocations: 302.5 kB / 0.5867 GB, free: 65.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006032/0.6999, allocations: 0.8479 MB / 0.5876 GB, free: 63.97 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.7009, allocations: 1.092 MB / 0.5886 GB, free: 62.69 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.7009, allocations: 7.938 kB / 0.5886 GB, free: 62.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001658/0.7026, allocations: 1.251 MB / 0.5899 GB, free: 61.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.7026, allocations: 8 kB / 0.5899 GB, free: 61.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.7026, allocations: 16 kB / 0.5899 GB, free: 61.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003131/0.7058, allocations: 0.5209 MB / 0.5904 GB, free: 60.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009705/0.7067, allocations: 279.6 kB / 0.5907 GB, free: 60.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006948/0.7074, allocations: 1.379 MB / 0.592 GB, free: 59.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007022/0.7081, allocations: 137 kB / 0.5921 GB, free: 59.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.822e-05/0.7082, allocations: 63.09 kB / 0.5922 GB, free: 59.02 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.0003796/0.7086, allocations: 298.4 kB / 0.5925 GB, free: 58.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.7088, allocations: 136.2 kB / 0.5926 GB, free: 58.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00337/0.7121, allocations: 4.604 MB / 0.5971 GB, free: 54.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.753e-05/0.7122, allocations: 47.92 kB / 0.5972 GB, free: 53.98 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.7122, allocations: 0 / 0.5972 GB, free: 53.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.7122, allocations: 3.984 kB / 0.5972 GB, free: 53.97 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003697/0.7159, allocations: 4.459 MB / 0.6015 GB, free: 49.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.7159, allocations: 0 / 0.6015 GB, free: 49.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007234/0.7166, allocations: 167.7 kB / 0.6017 GB, free: 49.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.7178, allocations: 0.6761 MB / 0.6023 GB, free: 48.67 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.021e-05/0.7179, allocations: 27.98 kB / 0.6024 GB, free: 48.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008927/0.7188, allocations: 1.779 MB / 0.6041 GB, free: 46.82 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.7188, allocations: 0 / 0.6041 GB, free: 46.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.7206, allocations: 2.028 MB / 0.6061 GB, free: 44.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000248/0.7208, allocations: 201.6 kB / 0.6063 GB, free: 44.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001669/0.721, allocations: 39.73 kB / 0.6063 GB, free: 44.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004782/0.7215, allocations: 20 kB / 0.6063 GB, free: 44.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.881e-05/0.7215, allocations: 60.64 kB / 0.6064 GB, free: 44.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.738e-05/0.7216, allocations: 31.98 kB / 0.6064 GB, free: 44.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007947/0.7224, allocations: 0.8342 MB / 0.6072 GB, free: 43.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7224, allocations: 0 / 0.6072 GB, free: 43.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002902/0.7253, allocations: 1.294 MB / 0.6085 GB, free: 42.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.00602/0.7313, allocations: 3.75 MB / 0.6122 GB, free: 38.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002185/0.7335, allocations: 1.233 MB / 0.6134 GB, free: 37.35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.7335, allocations: 0 / 0.6134 GB, free: 37.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.7347, allocations: 0.7555 MB / 0.6141 GB, free: 36.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002915/0.7376, allocations: 0.7288 MB / 0.6148 GB, free: 35.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/0.7503, allocations: 11.16 MB / 0.6257 GB, free: 24.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004456/0.7507, allocations: 0.7392 MB / 0.6264 GB, free: 23.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001025/0.7518, allocations: 0.6339 MB / 0.6271 GB, free: 22.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005849/0.7524, allocations: 0.6711 MB / 0.6277 GB, free: 22.12 MB / 446.1 MB Notification: Performance of SimCode: time 1.142e-06/0.7524, allocations: 0 / 0.6277 GB, free: 22.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1145/0.8669, allocations: 75.66 MB / 0.7016 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.8/18.67, allocations: 7.875 kB / 0.7016 GB, free: 10.93 MB / 0.4981 GB " [Timeout remaining time 641] (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: 23.602323569939472]