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.001513/0.001513, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001423/0.001423, allocations: 210.2 kB / 24.53 MB, free: 4.07 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.377/1.377, allocations: 230.5 MB / 258.2 MB, free: 8.043 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.001759/0.001759, allocations: 59.89 kB / 378.6 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2098, allocations: 53.41 MB / 432 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06477/0.2746, allocations: 63.99 MB / 496 MB, free: 6.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02805/0.3026, allocations: 22.59 MB / 0.5064 GB, free: 15.82 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.3036, allocations: 43.56 kB / 0.5064 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001741/0.3054, allocations: 0.7296 MB / 0.5071 GB, free: 15.04 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01405/0.3194, allocations: 5.836 MB / 0.5128 GB, free: 9.199 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009704/0.3291, allocations: 3.498 MB / 0.5163 GB, free: 5.703 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01826/0.3474, allocations: 9.102 MB / 0.5251 GB, free: 12.48 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001384/0.3487, allocations: 0.5719 MB / 0.5257 GB, free: 11.9 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002471/0.3512, allocations: 1.094 MB / 0.5268 GB, free: 10.8 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001822/0.353, allocations: 0.8557 MB / 0.5276 GB, free: 9.941 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003721/0.3534, allocations: 92 kB / 0.5277 GB, free: 9.852 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01686/0.3703, allocations: 7.715 MB / 0.5352 GB, free: 2.129 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006107/0.3709, allocations: 290.8 kB / 0.5355 GB, free: 1.844 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001405/0.3723, allocations: 0.7115 MB / 0.5362 GB, free: 1.129 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2246/0.5969, allocations: 5.781 MB / 0.5419 GB, free: 22.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.5969, allocations: 2.625 kB / 0.5419 GB, free: 22.91 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.5969, allocations: 0 / 0.5419 GB, free: 22.91 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.624e-05/0.5969, allocations: 0 / 0.5419 GB, free: 22.91 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.007596/0.6045, allocations: 2.457 MB / 0.5443 GB, free: 21.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.6045, allocations: 12.92 kB / 0.5443 GB, free: 21.88 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.941e-05/0.6046, allocations: 32.08 kB / 0.5443 GB, free: 21.87 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001494/0.6047, allocations: 154 kB / 0.5444 GB, free: 21.83 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004554/0.6093, allocations: 0.6612 MB / 0.5451 GB, free: 21.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002/0.6113, allocations: 0.9655 MB / 0.546 GB, free: 21.49 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.159e-05/0.6113, allocations: 79.2 kB / 0.5461 GB, free: 21.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.6115, allocations: 96.66 kB / 0.5462 GB, free: 21.48 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00323/0.6147, allocations: 1.676 MB / 0.5478 GB, free: 21.11 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.6147, allocations: 7.312 kB / 0.5478 GB, free: 21.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/0.6148, allocations: 45 kB / 0.5479 GB, free: 21.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.6148, allocations: 30.41 kB / 0.5479 GB, free: 21.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002868/0.6177, allocations: 1.462 MB / 0.5493 GB, free: 21.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007613/0.6253, allocations: 8.049 MB / 0.5572 GB, free: 15.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002686/0.628, allocations: 1.044 MB / 0.5582 GB, free: 15.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005005/0.6285, allocations: 364.7 kB / 0.5586 GB, free: 15.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1078/0.7363, allocations: 34.7 MB / 0.5925 GB, free: 14.03 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.337e-05/0.7363, allocations: 49.7 kB / 0.5925 GB, free: 13.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.886e-06/0.7363, allocations: 4 kB / 0.5925 GB, free: 13.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005889/0.7422, allocations: 1.915 MB / 0.5944 GB, free: 12.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/0.7424, allocations: 188.4 kB / 0.5946 GB, free: 12.27 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001401/0.7438, allocations: 0.968 MB / 0.5955 GB, free: 11.53 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.256e-05/0.7438, allocations: 40.64 kB / 0.5955 GB, free: 11.49 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004255/0.7443, allocations: 0.5819 MB / 0.5961 GB, free: 11.12 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002799/0.7445, allocations: 288.3 kB / 0.5964 GB, free: 10.88 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003258/0.7449, allocations: 234.1 kB / 0.5966 GB, free: 10.72 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.745, allocations: 353.5 kB / 0.5969 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005419/0.7456, allocations: 297.9 kB / 0.5972 GB, free: 10.21 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009066/0.7465, allocations: 0.7474 MB / 0.598 GB, free: 9.406 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.748, allocations: 1.098 MB / 0.599 GB, free: 8.477 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.357e-05/0.748, allocations: 7.938 kB / 0.599 GB, free: 8.469 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002239/0.7502, allocations: 1.242 MB / 0.6002 GB, free: 7.621 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.7502, allocations: 12 kB / 0.6003 GB, free: 7.609 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.7503, allocations: 13.86 kB / 0.6003 GB, free: 7.598 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003335/0.7536, allocations: 0.5287 MB / 0.6008 GB, free: 7.113 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.7547, allocations: 284.7 kB / 0.6011 GB, free: 6.867 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.7558, allocations: 1.372 MB / 0.6024 GB, free: 5.555 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009608/0.7568, allocations: 137.3 kB / 0.6025 GB, free: 5.441 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.7569, allocations: 63.03 kB / 0.6026 GB, free: 5.391 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.0005717/0.7575, allocations: 296.7 kB / 0.6029 GB, free: 5.195 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003816/0.7579, allocations: 131.1 kB / 0.603 GB, free: 5.066 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005219/0.7631, allocations: 4.602 MB / 0.6075 GB, free: 2.094 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.376e-05/0.7631, allocations: 46.67 kB / 0.6075 GB, free: 2.059 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.7632, allocations: 4 kB / 0.6075 GB, free: 2.055 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.7632, allocations: 3.984 kB / 0.6075 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005994/0.7692, allocations: 4.985 MB / 0.6124 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/0.7692, allocations: 7.938 kB / 0.6124 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008244/0.77, allocations: 166.7 kB / 0.6126 GB, free: 14.35 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001563/0.7716, allocations: 0.6718 MB / 0.6132 GB, free: 13.76 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.346e-05/0.7716, allocations: 27.36 kB / 0.6133 GB, free: 13.74 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001491/0.7731, allocations: 1.786 MB / 0.615 GB, free: 12.18 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.7731, allocations: 3.281 kB / 0.615 GB, free: 12.18 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002597/0.7757, allocations: 2.028 MB / 0.617 GB, free: 10.69 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000429/0.7761, allocations: 203.4 kB / 0.6172 GB, free: 10.49 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002513/0.7764, allocations: 44.53 kB / 0.6172 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005617/0.777, allocations: 21.19 kB / 0.6172 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.076e-05/0.777, allocations: 55.8 kB / 0.6173 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.253e-05/0.7771, allocations: 34.36 kB / 0.6173 GB, free: 10.38 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001114/0.7782, allocations: 0.8335 MB / 0.6181 GB, free: 9.77 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7782, allocations: 1.531 kB / 0.6181 GB, free: 9.77 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004976/0.7832, allocations: 1.299 MB / 0.6194 GB, free: 8.543 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.01024/0.7934, allocations: 3.746 MB / 0.6231 GB, free: 5.484 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003163/0.7966, allocations: 1.231 MB / 0.6243 GB, free: 4.371 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/0.7966, allocations: 8 kB / 0.6243 GB, free: 4.363 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001666/0.7983, allocations: 0.7457 MB / 0.625 GB, free: 3.637 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003865/0.8021, allocations: 0.7202 MB / 0.6257 GB, free: 2.934 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01937/0.8215, allocations: 11.17 MB / 0.6366 GB, free: 7.324 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.8226, allocations: 1.32 MB / 0.6379 GB, free: 5.973 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001349/0.8239, allocations: 0.6341 MB / 0.6385 GB, free: 5.352 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008759/0.8248, allocations: 0.6672 MB / 0.6392 GB, free: 4.688 MB / 494.1 MB Notification: Performance of SimCode: time 1.042e-06/0.8248, allocations: 0 / 0.6392 GB, free: 4.688 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1222/0.947, allocations: 74.96 MB / 0.7124 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.43/18.38, allocations: 8 kB / 0.7124 GB, free: 10.08 MB / 0.5606 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: 25.584694757009856]