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.001779/0.001779, allocations: 109.1 kB / 21.18 MB, free: 0.7617 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.00165/0.00165, allocations: 209.5 kB / 24.49 MB, free: 4.148 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.471/1.471, allocations: 230.5 MB / 258.1 MB, free: 8.004 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: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 63.91 kB / 379 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2746, allocations: 53.41 MB / 432.4 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07179/0.3464, allocations: 63.99 MB / 496.4 MB, free: 6.574 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03159/0.378, allocations: 22.59 MB / 0.5068 GB, free: 15.91 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001619/0.3796, allocations: 47.56 kB / 0.5069 GB, free: 15.86 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002255/0.3819, allocations: 0.7296 MB / 0.5076 GB, free: 15.13 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01651/0.3984, allocations: 5.837 MB / 0.5133 GB, free: 9.285 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009897/0.4083, allocations: 3.502 MB / 0.5167 GB, free: 5.785 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01828/0.4265, allocations: 9.099 MB / 0.5256 GB, free: 12.56 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001434/0.428, allocations: 0.5835 MB / 0.5262 GB, free: 11.97 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002473/0.4305, allocations: 1.086 MB / 0.5272 GB, free: 10.88 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001615/0.4321, allocations: 0.8635 MB / 0.5281 GB, free: 10.01 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002051/0.4323, allocations: 96 kB / 0.5282 GB, free: 9.918 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01663/0.4489, allocations: 7.703 MB / 0.5357 GB, free: 2.207 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005531/0.4495, allocations: 286.8 kB / 0.536 GB, free: 1.926 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00124/0.4507, allocations: 0.7231 MB / 0.5367 GB, free: 1.199 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.27/0.7207, allocations: 5.775 MB / 0.5423 GB, free: 22.95 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.7207, allocations: 0 / 0.5423 GB, free: 22.95 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.7207, allocations: 0 / 0.5423 GB, free: 22.95 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.674e-05/0.7207, allocations: 0 / 0.5423 GB, free: 22.95 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.008552/0.7293, allocations: 2.469 MB / 0.5447 GB, free: 21.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.7293, allocations: 9.625 kB / 0.5447 GB, free: 21.91 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004647/0.734, allocations: 0.6672 MB / 0.5454 GB, free: 21.83 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002048/0.736, allocations: 0.9609 MB / 0.5463 GB, free: 21.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.074e-05/0.7361, allocations: 78.98 kB / 0.5464 GB, free: 21.57 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.7362, allocations: 102.6 kB / 0.5465 GB, free: 21.56 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003202/0.7394, allocations: 1.672 MB / 0.5481 GB, free: 21.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/0.7394, allocations: 6.531 kB / 0.5481 GB, free: 21.18 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.45e-05/0.7395, allocations: 47.59 kB / 0.5482 GB, free: 21.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.7396, allocations: 24.66 kB / 0.5482 GB, free: 21.18 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002952/0.7425, allocations: 1.462 MB / 0.5496 GB, free: 21.18 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007929/0.7504, allocations: 8.051 MB / 0.5575 GB, free: 15.97 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002593/0.753, allocations: 1.039 MB / 0.5585 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005023/0.7535, allocations: 366.3 kB / 0.5589 GB, free: 15.89 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1133/0.8669, allocations: 34.69 MB / 0.5927 GB, free: 14.28 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.079e-05/0.8669, allocations: 46.22 kB / 0.5928 GB, free: 14.23 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.946e-06/0.8669, allocations: 0 / 0.5928 GB, free: 14.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.006243/0.8732, allocations: 1.917 MB / 0.5947 GB, free: 12.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/0.8733, allocations: 192.4 kB / 0.5948 GB, free: 12.52 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001476/0.8748, allocations: 0.9647 MB / 0.5958 GB, free: 11.78 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.214e-05/0.8749, allocations: 38.02 kB / 0.5958 GB, free: 11.74 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004751/0.8753, allocations: 0.5831 MB / 0.5964 GB, free: 11.37 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003159/0.8757, allocations: 283.3 kB / 0.5967 GB, free: 11.13 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003284/0.876, allocations: 237.3 kB / 0.5969 GB, free: 10.98 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.8762, allocations: 352.7 kB / 0.5972 GB, free: 10.64 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005443/0.8767, allocations: 299.5 kB / 0.5975 GB, free: 10.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009668/0.8777, allocations: 0.7445 MB / 0.5982 GB, free: 9.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.8793, allocations: 1.097 MB / 0.5993 GB, free: 8.727 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.387e-06/0.8793, allocations: 5.25 kB / 0.5993 GB, free: 8.723 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00227/0.8816, allocations: 1.25 MB / 0.6005 GB, free: 7.871 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.8816, allocations: 16.03 kB / 0.6005 GB, free: 7.855 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/0.8816, allocations: 15.75 kB / 0.6006 GB, free: 7.844 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003517/0.8851, allocations: 0.5179 MB / 0.6011 GB, free: 7.363 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.8863, allocations: 280.8 kB / 0.6013 GB, free: 7.121 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001283/0.8876, allocations: 1.383 MB / 0.6027 GB, free: 5.805 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.8886, allocations: 132.5 kB / 0.6028 GB, free: 5.695 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.8887, allocations: 66.78 kB / 0.6029 GB, free: 5.641 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.0005476/0.8892, allocations: 293.3 kB / 0.6032 GB, free: 5.445 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.8895, allocations: 131.2 kB / 0.6033 GB, free: 5.316 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005054/0.8946, allocations: 4.606 MB / 0.6078 GB, free: 2.344 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.41e-05/0.8946, allocations: 40.73 kB / 0.6078 GB, free: 2.312 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.8946, allocations: 4 kB / 0.6078 GB, free: 2.309 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.8946, allocations: 3.984 kB / 0.6078 GB, free: 2.305 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005946/0.9006, allocations: 4.985 MB / 0.6127 GB, free: 14.76 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.9006, allocations: 1.641 kB / 0.6127 GB, free: 14.76 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008607/0.9015, allocations: 166.5 kB / 0.6129 GB, free: 14.61 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001572/0.903, allocations: 0.6848 MB / 0.6135 GB, free: 14.01 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.2e-05/0.9031, allocations: 19.69 kB / 0.6135 GB, free: 14 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001567/0.9047, allocations: 1.784 MB / 0.6153 GB, free: 12.44 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.9047, allocations: 4 kB / 0.6153 GB, free: 12.43 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002718/0.9074, allocations: 2.031 MB / 0.6173 GB, free: 10.95 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00044/0.9078, allocations: 204.5 kB / 0.6175 GB, free: 10.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.908, allocations: 41.28 kB / 0.6175 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004911/0.9085, allocations: 23.31 kB / 0.6175 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.512e-05/0.9086, allocations: 58.09 kB / 0.6176 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.86e-05/0.9087, allocations: 31.42 kB / 0.6176 GB, free: 10.64 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001134/0.9098, allocations: 0.8289 MB / 0.6184 GB, free: 10.03 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.9098, allocations: 4 kB / 0.6184 GB, free: 10.03 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005615/0.9154, allocations: 1.299 MB / 0.6197 GB, free: 8.801 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.007064/0.9225, allocations: 1.257 MB / 0.6209 GB, free: 7.688 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002846/0.9253, allocations: 1.225 MB / 0.6221 GB, free: 6.852 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.9253, allocations: 0 / 0.6221 GB, free: 6.852 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.927, allocations: 0.7614 MB / 0.6229 GB, free: 6.336 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003571/0.9306, allocations: 0.7219 MB / 0.6236 GB, free: 5.742 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005123/0.9357, allocations: 3.182 MB / 0.6267 GB, free: 2.613 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001035/0.9367, allocations: 1.312 MB / 0.628 GB, free: 1.27 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003779/0.9371, allocations: 123.4 kB / 0.6281 GB, free: 1.148 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/0.9371, allocations: 0 / 0.6281 GB, free: 1.148 MB / 478.1 MB Notification: Performance of Templates: time 0.07543/1.013, allocations: 51.31 MB / 0.6782 GB, free: 13.98 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] 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: 13.70905830594711]