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.002197/0.002197, allocations: 118 kB / 18.46 MB, free: 4.613 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.002815/0.002815, allocations: 207.4 kB / 21.4 MB, free: 1.668 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.433/1.433, allocations: 227.5 MB / 251.7 MB, free: 15.92 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.001875/0.001875, allocations: 67.89 kB / 365 MB, free: 296 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09897/0.1009, allocations: 50.55 MB / 415.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2686/0.3695, allocations: 63.03 MB / 478.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0285/0.3981, allocations: 22.45 MB / 0.4893 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.3996, allocations: 29.12 kB / 0.4894 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002409/0.4021, allocations: 0.7305 MB / 0.4901 GB, free: 13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0191/0.4212, allocations: 5.803 MB / 0.4957 GB, free: 8.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009194/0.4304, allocations: 3.466 MB / 0.4991 GB, free: 6.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01857/0.449, allocations: 9.052 MB / 0.508 GB, free: 108 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001383/0.4504, allocations: 0.6957 MB / 0.5086 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002235/0.4527, allocations: 1.047 MB / 0.5097 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001209/0.4539, allocations: 0.8246 MB / 0.5105 GB, free: 13.53 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001712/0.4541, allocations: 92 kB / 0.5106 GB, free: 13.44 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0153/0.4694, allocations: 7.684 MB / 0.5181 GB, free: 5.75 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000434/0.4699, allocations: 278.9 kB / 0.5183 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001084/0.471, allocations: 0.7192 MB / 0.519 GB, free: 4.754 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01254/0.4835, allocations: 5.782 MB / 0.5247 GB, free: 14.96 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.4836, allocations: 4 kB / 0.5247 GB, free: 14.95 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4836, allocations: 4 kB / 0.5247 GB, free: 14.95 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.214e-05/0.4836, allocations: 0 / 0.5247 GB, free: 14.95 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.006284/0.4899, allocations: 2.531 MB / 0.5272 GB, free: 12.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.49, allocations: 8.031 kB / 0.5272 GB, free: 12.35 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002012/0.4902, allocations: 164.5 kB / 0.5273 GB, free: 12.18 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004836/0.495, allocations: 0.6556 MB / 0.528 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002187/0.4972, allocations: 1.048 MB / 0.529 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.549e-05/0.4973, allocations: 74.39 kB / 0.5291 GB, free: 10.36 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001639/0.4975, allocations: 99.94 kB / 0.5291 GB, free: 10.26 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003864/0.5014, allocations: 1.678 MB / 0.5308 GB, free: 8.434 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.5014, allocations: 7.938 kB / 0.5308 GB, free: 8.426 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.5015, allocations: 47.94 kB / 0.5308 GB, free: 8.379 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.496e-05/0.5016, allocations: 28 kB / 0.5309 GB, free: 8.352 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003482/0.5051, allocations: 1.471 MB / 0.5323 GB, free: 6.875 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/0.5151, allocations: 8.4 MB / 0.5405 GB, free: 13.87 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003227/0.5184, allocations: 1.7 MB / 0.5422 GB, free: 12.01 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006406/0.519, allocations: 403.5 kB / 0.5426 GB, free: 11.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1397/0.6588, allocations: 70.65 MB / 0.6115 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.502e-05/0.6589, allocations: 51.06 kB / 0.6116 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=77): time 3.065e-06/0.6589, allocations: 0 / 0.6116 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of matching and sorting (n=77): time 0.006109/0.665, allocations: 2.003 MB / 0.6135 GB, free: 9.945 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.6651, allocations: 192.4 kB / 0.6137 GB, free: 9.715 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/0.6664, allocations: 0.9608 MB / 0.6147 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.626e-05/0.6665, allocations: 37.7 kB / 0.6147 GB, free: 8.695 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000454/0.667, allocations: 0.5819 MB / 0.6153 GB, free: 8.105 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002553/0.6672, allocations: 293.5 kB / 0.6156 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003275/0.6676, allocations: 238.8 kB / 0.6158 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000161/0.6677, allocations: 345.9 kB / 0.6161 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005463/0.6683, allocations: 306.4 kB / 0.6164 GB, free: 6.934 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000935/0.6692, allocations: 0.7472 MB / 0.6171 GB, free: 5.98 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001517/0.6708, allocations: 1.09 MB / 0.6182 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.6708, allocations: 4 kB / 0.6182 GB, free: 4.691 MB / 0.5137 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002212/0.673, allocations: 1.261 MB / 0.6194 GB, free: 3.422 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.673, allocations: 12 kB / 0.6194 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.6731, allocations: 12 kB / 0.6195 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003349/0.6764, allocations: 0.5235 MB / 0.62 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.6775, allocations: 275.5 kB / 0.6202 GB, free: 2.602 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.6788, allocations: 1.375 MB / 0.6216 GB, free: 1.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008274/0.6796, allocations: 131 kB / 0.6217 GB, free: 1.051 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.6798, allocations: 64.03 kB / 0.6218 GB, free: 0.9883 MB / 0.5137 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.0005387/0.6803, allocations: 309.3 kB / 0.6221 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002382/0.6805, allocations: 131.2 kB / 0.6222 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005216/0.6858, allocations: 4.489 MB / 0.6266 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.027e-05/0.6858, allocations: 48.06 kB / 0.6266 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.6859, allocations: 3.984 kB / 0.6266 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.6859, allocations: 3.984 kB / 0.6266 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005702/0.6916, allocations: 4.946 MB / 0.6314 GB, free: 6.859 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.6916, allocations: 4 kB / 0.6314 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007917/0.6924, allocations: 163.7 kB / 0.6316 GB, free: 6.695 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001509/0.6939, allocations: 0.6684 MB / 0.6323 GB, free: 6.023 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.622e-05/0.694, allocations: 23.98 kB / 0.6323 GB, free: 6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001499/0.6955, allocations: 1.763 MB / 0.634 GB, free: 4.184 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.6955, allocations: 4.031 kB / 0.634 GB, free: 4.18 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.6981, allocations: 2.035 MB / 0.636 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000342/0.6985, allocations: 279.2 kB / 0.6363 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001628/0.6986, allocations: 39.77 kB / 0.6363 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.6991, allocations: 24 kB / 0.6363 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.655e-05/0.6992, allocations: 56.48 kB / 0.6364 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.688e-05/0.6993, allocations: 31.98 kB / 0.6364 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001096/0.7004, allocations: 0.8303 MB / 0.6372 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.894e-06/0.7004, allocations: 0 / 0.6372 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.1772/0.8776, allocations: 1.295 MB / 0.6385 GB, free: 197.4 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.00679/0.8844, allocations: 3.736 MB / 0.6421 GB, free: 196.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002829/0.8873, allocations: 1.267 MB / 0.6434 GB, free: 196.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.8873, allocations: 4.656 kB / 0.6434 GB, free: 196.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001401/0.8887, allocations: 0.9038 MB / 0.6443 GB, free: 196.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003612/0.8923, allocations: 0.7195 MB / 0.645 GB, free: 196.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/0.9074, allocations: 11.14 MB / 0.6558 GB, free: 192.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000766/0.9082, allocations: 1.32 MB / 0.6571 GB, free: 191.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001493/0.9097, allocations: 0.6337 MB / 0.6577 GB, free: 191.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006736/0.9104, allocations: 0.6674 MB / 0.6584 GB, free: 191.3 MB / 0.5294 GB Notification: Performance of SimCode: time 7.02e-07/0.9104, allocations: 1.641 kB / 0.6584 GB, free: 191.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09823/1.009, allocations: 72.9 MB / 0.7296 GB, free: 128.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.61/17.62, allocations: 3.781 kB / 0.7296 GB, free: 128.7 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: 22.57163508911617]