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.001352/0.001352, allocations: 116.9 kB / 18.49 MB, free: 4.559 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.001413/0.001413, allocations: 212.7 kB / 21.46 MB, free: 1.605 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.467/1.467, allocations: 230.4 MB / 254.7 MB, free: 15.19 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="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.002181/0.002181, allocations: 59.91 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1073, allocations: 53.38 MB / 427.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2702/0.3776, allocations: 63.42 MB / 490.5 MB, free: 3.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03093/0.4085, allocations: 22.52 MB / 0.501 GB, free: 1.316 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002018/0.4105, allocations: 44.97 kB / 0.501 GB, free: 1.289 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002289/0.4128, allocations: 0.73 MB / 0.5017 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01708/0.4299, allocations: 5.822 MB / 0.5074 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01105/0.4409, allocations: 3.474 MB / 0.5108 GB, free: 9.918 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01747/0.4584, allocations: 9.066 MB / 0.5197 GB, free: 1.387 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001384/0.4598, allocations: 0.6002 MB / 0.5202 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003391/0.4632, allocations: 1.082 MB / 0.5213 GB, free: 15.69 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001828/0.465, allocations: 0.8635 MB / 0.5221 GB, free: 14.82 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003559/0.4654, allocations: 92 kB / 0.5222 GB, free: 14.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01759/0.483, allocations: 7.689 MB / 0.5297 GB, free: 7.035 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005543/0.4835, allocations: 298.7 kB / 0.53 GB, free: 6.742 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001247/0.4848, allocations: 0.7115 MB / 0.5307 GB, free: 6.027 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01658/0.5013, allocations: 5.778 MB / 0.5364 GB, free: 240 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.617e-06/0.5013, allocations: 0 / 0.5364 GB, free: 240 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5013, allocations: 0 / 0.5364 GB, free: 240 kB / 430.1 MB Notification: Performance of Transformations before backend: time 8.174e-05/0.5014, allocations: 0 / 0.5364 GB, free: 240 kB / 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.007715/0.5091, allocations: 2.543 MB / 0.5388 GB, free: 13.62 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.5092, allocations: 8.031 kB / 0.5389 GB, free: 13.62 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.888e-05/0.5092, allocations: 30.2 kB / 0.5389 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003323/0.5096, allocations: 156.5 kB / 0.539 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005053/0.5146, allocations: 0.6673 MB / 0.5397 GB, free: 12.76 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002512/0.5171, allocations: 1.041 MB / 0.5407 GB, free: 11.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.463e-05/0.5172, allocations: 81.95 kB / 0.5408 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002578/0.5175, allocations: 99.94 kB / 0.5409 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004339/0.5218, allocations: 1.674 MB / 0.5425 GB, free: 9.668 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/0.5219, allocations: 11.94 kB / 0.5425 GB, free: 9.656 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001515/0.522, allocations: 44 kB / 0.5426 GB, free: 9.613 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.255e-05/0.522, allocations: 28 kB / 0.5426 GB, free: 9.586 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003736/0.5258, allocations: 1.46 MB / 0.544 GB, free: 8.125 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01118/0.5369, allocations: 8.401 MB / 0.5522 GB, free: 15.12 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003185/0.5401, allocations: 1.645 MB / 0.5538 GB, free: 13.31 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006108/0.5407, allocations: 359.2 kB / 0.5542 GB, free: 12.96 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1411/0.6818, allocations: 70.66 MB / 0.6232 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/0.6819, allocations: 46.06 kB / 0.6232 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=77): time 3.076e-06/0.6819, allocations: 0 / 0.6232 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of matching and sorting (n=77): time 0.006157/0.6881, allocations: 1.994 MB / 0.6252 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.6882, allocations: 192.5 kB / 0.6253 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/0.6896, allocations: 0.9608 MB / 0.6263 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.276e-05/0.6896, allocations: 41.7 kB / 0.6263 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004902/0.6901, allocations: 0.5818 MB / 0.6269 GB, free: 9.465 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002633/0.6904, allocations: 289.6 kB / 0.6272 GB, free: 9.18 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003371/0.6907, allocations: 238.8 kB / 0.6274 GB, free: 8.941 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001639/0.6909, allocations: 345.9 kB / 0.6277 GB, free: 8.598 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005498/0.6914, allocations: 302.5 kB / 0.628 GB, free: 8.301 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009723/0.6924, allocations: 0.7472 MB / 0.6287 GB, free: 7.348 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.694, allocations: 1.093 MB / 0.6298 GB, free: 6.059 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/0.694, allocations: 7.938 kB / 0.6298 GB, free: 6.051 MB / 0.5294 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002282/0.6963, allocations: 1.249 MB / 0.631 GB, free: 4.793 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.6963, allocations: 12 kB / 0.631 GB, free: 4.781 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/0.6963, allocations: 16 kB / 0.6311 GB, free: 4.766 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003269/0.6996, allocations: 0.5265 MB / 0.6316 GB, free: 4.238 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.7007, allocations: 275.6 kB / 0.6318 GB, free: 3.969 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/0.7019, allocations: 1.376 MB / 0.6332 GB, free: 2.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008962/0.7028, allocations: 135 kB / 0.6333 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.7029, allocations: 64.03 kB / 0.6334 GB, free: 2.348 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.0005094/0.7034, allocations: 292 kB / 0.6337 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002554/0.7036, allocations: 135.1 kB / 0.6338 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1953/0.8989, allocations: 4.409 MB / 0.6381 GB, free: 191.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.371e-05/0.899, allocations: 43.45 kB / 0.6381 GB, free: 191.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.899, allocations: 2.438 kB / 0.6381 GB, free: 191.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.899, allocations: 8.578 kB / 0.6381 GB, free: 191.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005255/0.9043, allocations: 4.886 MB / 0.6429 GB, free: 188.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.9043, allocations: 1.938 kB / 0.6429 GB, free: 188.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008367/0.9051, allocations: 168 kB / 0.6431 GB, free: 188.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001707/0.9068, allocations: 0.6677 MB / 0.6437 GB, free: 188.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-05/0.9069, allocations: 23.77 kB / 0.6437 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001418/0.9083, allocations: 1.757 MB / 0.6455 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.9083, allocations: 1.875 kB / 0.6455 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0028/0.9111, allocations: 1.989 MB / 0.6474 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003803/0.9115, allocations: 282.1 kB / 0.6477 GB, free: 186 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.9116, allocations: 44.83 kB / 0.6477 GB, free: 186 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004937/0.9121, allocations: 18.98 kB / 0.6477 GB, free: 186 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.9122, allocations: 56.28 kB / 0.6478 GB, free: 186 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.973e-05/0.9123, allocations: 30.73 kB / 0.6478 GB, free: 186 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001136/0.9134, allocations: 0.8308 MB / 0.6486 GB, free: 185.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.9134, allocations: 0.875 kB / 0.6486 GB, free: 185.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004109/0.9175, allocations: 1.298 MB / 0.6499 GB, free: 185.5 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.006973/0.9245, allocations: 3.687 MB / 0.6535 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002597/0.9271, allocations: 1.204 MB / 0.6547 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.9271, allocations: 1.156 kB / 0.6547 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.9286, allocations: 0.7312 MB / 0.6554 GB, free: 183.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003573/0.9322, allocations: 0.7281 MB / 0.6561 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01634/0.9485, allocations: 11.14 MB / 0.667 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008217/0.9493, allocations: 1.317 MB / 0.6683 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001446/0.9508, allocations: 0.632 MB / 0.6689 GB, free: 176.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007262/0.9515, allocations: 0.6686 MB / 0.6695 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.262e-06/0.9515, allocations: 3.938 kB / 0.6695 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09988/1.051, allocations: 73.14 MB / 0.741 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.56/17.62, allocations: 11.91 kB / 0.741 GB, free: 106.3 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/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: 25.197966883017216]