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.001585/0.001585, allocations: 106.1 kB / 19.8 MB, free: 2.5 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.001851/0.001851, allocations: 213.6 kB / 23 MB, free: 5.574 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.412/1.412, allocations: 230.2 MB / 256.2 MB, free: 8.504 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.001858/0.001858, allocations: 63.89 kB / 376.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2497, allocations: 53.33 MB / 429.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06885/0.3185, allocations: 63.97 MB / 493.8 MB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03023/0.3487, allocations: 22.58 MB / 0.5042 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.3499, allocations: 35.75 kB / 0.5043 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002089/0.352, allocations: 0.7335 MB / 0.505 GB, free: 15.92 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01553/0.3675, allocations: 5.821 MB / 0.5107 GB, free: 10.09 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008958/0.3765, allocations: 3.479 MB / 0.5141 GB, free: 6.617 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01702/0.3935, allocations: 9.076 MB / 0.5229 GB, free: 13.42 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00127/0.3948, allocations: 0.5869 MB / 0.5235 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002312/0.3971, allocations: 1.07 MB / 0.5245 GB, free: 11.75 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001543/0.3986, allocations: 0.8596 MB / 0.5254 GB, free: 10.89 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002985/0.3989, allocations: 92 kB / 0.5255 GB, free: 10.8 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01538/0.4143, allocations: 7.692 MB / 0.533 GB, free: 3.098 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005379/0.4148, allocations: 294.7 kB / 0.5333 GB, free: 2.809 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001373/0.4162, allocations: 0.7115 MB / 0.534 GB, free: 2.094 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2272/0.6434, allocations: 5.77 MB / 0.5396 GB, free: 24.71 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.6434, allocations: 0 / 0.5396 GB, free: 24.71 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.6434, allocations: 0 / 0.5396 GB, free: 24.71 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.404e-05/0.6434, allocations: 0 / 0.5396 GB, free: 24.71 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.008221/0.6516, allocations: 2.536 MB / 0.5421 GB, free: 23.58 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.6517, allocations: 9.562 kB / 0.5421 GB, free: 23.58 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004815/0.6565, allocations: 0.6639 MB / 0.5427 GB, free: 23.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001927/0.6584, allocations: 1.048 MB / 0.5438 GB, free: 23.17 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.087e-05/0.6585, allocations: 76.23 kB / 0.5438 GB, free: 23.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.6586, allocations: 102.9 kB / 0.5439 GB, free: 23.16 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003482/0.6621, allocations: 1.671 MB / 0.5456 GB, free: 22.78 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.068e-05/0.6621, allocations: 9.875 kB / 0.5456 GB, free: 22.78 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/0.6622, allocations: 45.5 kB / 0.5456 GB, free: 22.78 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.645e-05/0.6623, allocations: 26.91 kB / 0.5456 GB, free: 22.78 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003059/0.6653, allocations: 1.468 MB / 0.5471 GB, free: 22.78 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008425/0.6738, allocations: 8.399 MB / 0.5553 GB, free: 17.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002768/0.6765, allocations: 1.644 MB / 0.5569 GB, free: 16.38 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000518/0.677, allocations: 367.9 kB / 0.5572 GB, free: 16.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1315/0.8085, allocations: 70.65 MB / 0.6262 GB, free: 1.898 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.51e-05/0.8086, allocations: 40.88 kB / 0.6263 GB, free: 1.852 MB / 494.1 MB Notification: Performance of pre-optimization done (n=77): time 4.438e-06/0.8086, allocations: 3.984 kB / 0.6263 GB, free: 1.848 MB / 494.1 MB Notification: Performance of matching and sorting (n=77): time 0.005906/0.8145, allocations: 1.997 MB / 0.6282 GB, free: 272 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.8146, allocations: 195.9 kB / 0.6284 GB, free: 36 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001269/0.8159, allocations: 0.9601 MB / 0.6293 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.486e-05/0.8159, allocations: 41.02 kB / 0.6294 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004356/0.8164, allocations: 0.5814 MB / 0.63 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002674/0.8167, allocations: 292.1 kB / 0.6302 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000308/0.817, allocations: 240.5 kB / 0.6305 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001626/0.8171, allocations: 349.9 kB / 0.6308 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005165/0.8176, allocations: 296.5 kB / 0.6311 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000907/0.8185, allocations: 0.7392 MB / 0.6318 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.82, allocations: 1.101 MB / 0.6329 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.82, allocations: 4 kB / 0.6329 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002085/0.8221, allocations: 1.251 MB / 0.6341 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.8221, allocations: 12 kB / 0.6341 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.8221, allocations: 15.98 kB / 0.6341 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003373/0.8255, allocations: 0.5191 MB / 0.6346 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.8266, allocations: 277.5 kB / 0.6349 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.8278, allocations: 1.383 MB / 0.6362 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008977/0.8287, allocations: 135 kB / 0.6364 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.8288, allocations: 64.34 kB / 0.6364 GB, free: 9.16 MB / 0.4981 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.0004819/0.8293, allocations: 291.5 kB / 0.6367 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002451/0.8295, allocations: 135.2 kB / 0.6368 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004901/0.8344, allocations: 4.421 MB / 0.6412 GB, free: 6.047 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-05/0.8345, allocations: 46.42 kB / 0.6412 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.8345, allocations: 0 / 0.6412 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.8345, allocations: 3.984 kB / 0.6412 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005907/0.8404, allocations: 4.884 MB / 0.646 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.8404, allocations: 5.641 kB / 0.646 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00083/0.8412, allocations: 165.7 kB / 0.6461 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001512/0.8428, allocations: 0.6741 MB / 0.6468 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.055e-05/0.8428, allocations: 22.61 kB / 0.6468 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001458/0.8443, allocations: 1.76 MB / 0.6485 GB, free: 272 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.8443, allocations: 0 / 0.6485 GB, free: 272 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002548/0.8468, allocations: 1.988 MB / 0.6505 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004524/0.8473, allocations: 276 kB / 0.6507 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001908/0.8475, allocations: 44.48 kB / 0.6508 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004778/0.8479, allocations: 26.73 kB / 0.6508 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.553e-05/0.848, allocations: 55.06 kB / 0.6509 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-05/0.8481, allocations: 39.47 kB / 0.6509 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001123/0.8492, allocations: 0.825 MB / 0.6517 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.8492, allocations: 0 / 0.6517 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005846/0.8551, allocations: 1.299 MB / 0.653 GB, free: 12.58 MB / 0.5137 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.006191/0.8613, allocations: 1.264 MB / 0.6542 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002669/0.8639, allocations: 1.203 MB / 0.6554 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.8639, allocations: 0 / 0.6554 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001425/0.8654, allocations: 0.7327 MB / 0.6561 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003388/0.8687, allocations: 0.7221 MB / 0.6568 GB, free: 9.582 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004443/0.8732, allocations: 3.089 MB / 0.6598 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009472/0.8741, allocations: 1.324 MB / 0.6611 GB, free: 5.402 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001297/0.8754, allocations: 0.6342 MB / 0.6617 GB, free: 4.773 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002756/0.8757, allocations: 119.4 kB / 0.6618 GB, free: 4.656 MB / 0.5137 GB Notification: Performance of SimCode: time 6.42e-07/0.8757, allocations: 0 / 0.6618 GB, free: 4.656 MB / 0.5137 GB Notification: Performance of Templates: time 0.09057/0.9663, allocations: 58.73 MB / 0.7192 GB, free: 10.32 MB / 0.5762 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins/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: 9.09638611972332]