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.001664/0.001664, allocations: 84.95 kB / 20.68 MB, free: 1.035 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.001997/0.001997, allocations: 158.2 kB / 23.95 MB, free: 4.168 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.531/1.531, allocations: 177 MB / 204.1 MB, free: 9.184 MB / 190.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 1.533e-06/1.533e-06, allocations: 0 / 325 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.405e-05/2.558e-05, allocations: 2.281 kB / 325 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06585/0.06587, allocations: 57.13 MB / 382.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02938/0.09525, allocations: 20.09 MB / 402.2 MB, free: 7.641 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001451/0.0967, allocations: 43.56 kB / 402.3 MB, free: 7.598 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002022/0.09872, allocations: 0.6865 MB / 403 MB, free: 6.906 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0176/0.1163, allocations: 5.915 MB / 408.9 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009969/0.1263, allocations: 3.489 MB / 412.4 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0203/0.1466, allocations: 9.163 MB / 421.5 MB, free: 4.207 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00143/0.148, allocations: 0.5835 MB / 422.1 MB, free: 3.609 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002876/0.1509, allocations: 1.422 MB / 423.5 MB, free: 2.184 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001216/0.1521, allocations: 0.7128 MB / 424.2 MB, free: 1.469 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001788/0.1523, allocations: 92 kB / 424.3 MB, free: 1.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01567/0.168, allocations: 7.316 MB / 431.6 MB, free: 10.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004767/0.1684, allocations: 290.8 kB / 431.9 MB, free: 9.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001019/0.1695, allocations: 0.4989 MB / 432.4 MB, free: 9.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.016/0.1855, allocations: 6.906 MB / 439.3 MB, free: 2.348 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1855, allocations: 0 / 439.3 MB, free: 2.348 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1855, allocations: 0 / 439.3 MB, free: 2.348 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.037e-05/0.1855, allocations: 0 / 439.3 MB, free: 2.348 MB / 398.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.007523/0.193, allocations: 2.451 MB / 441.8 MB, free: 15.85 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/0.1931, allocations: 11.98 kB / 441.8 MB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005099/0.1982, allocations: 0.6634 MB / 442.5 MB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00243/0.2006, allocations: 0.9676 MB / 443.4 MB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.842e-05/0.2007, allocations: 74.39 kB / 443.5 MB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/0.2008, allocations: 96.38 kB / 443.6 MB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004374/0.2052, allocations: 1.982 MB / 445.6 MB, free: 11.81 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.017e-05/0.2053, allocations: 7.938 kB / 445.6 MB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/0.2054, allocations: 44 kB / 445.6 MB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.634e-05/0.2054, allocations: 31.94 kB / 445.7 MB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003695/0.2091, allocations: 1.451 MB / 447.1 MB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01111/0.2202, allocations: 6.229 MB / 453.3 MB, free: 3.871 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003164/0.2234, allocations: 1.037 MB / 454.4 MB, free: 2.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006714/0.2241, allocations: 351.1 kB / 454.7 MB, free: 2.473 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2863/0.5104, allocations: 34.81 MB / 489.5 MB, free: 131.8 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.5104, allocations: 41.78 kB / 489.6 MB, free: 131.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=77): time 2.705e-06/0.5104, allocations: 0 / 489.6 MB, free: 131.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=77): time 0.005692/0.5161, allocations: 1.906 MB / 491.5 MB, free: 129.9 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.5162, allocations: 192.2 kB / 491.7 MB, free: 129.6 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008524/0.517, allocations: 0.831 MB / 492.5 MB, free: 128.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.504e-05/0.5171, allocations: 37.7 kB / 492.5 MB, free: 128.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.5173, allocations: 0.5953 MB / 493.1 MB, free: 128.3 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/0.5175, allocations: 284.3 kB / 493.4 MB, free: 128 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/0.5178, allocations: 238.8 kB / 493.6 MB, free: 127.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.92e-05/0.5178, allocations: 353 kB / 494 MB, free: 127.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004489/0.5183, allocations: 302.5 kB / 494.3 MB, free: 127.2 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006112/0.5189, allocations: 0.8441 MB / 495.1 MB, free: 126.1 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.52, allocations: 1.094 MB / 496.2 MB, free: 124.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.52, allocations: 4 kB / 496.2 MB, free: 124.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001746/0.5217, allocations: 1.228 MB / 497.4 MB, free: 123.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.5218, allocations: 15.94 kB / 497.5 MB, free: 123.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.5218, allocations: 16 kB / 497.5 MB, free: 123.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003321/0.5251, allocations: 0.5187 MB / 498 MB, free: 123 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009947/0.5261, allocations: 279.5 kB / 498.3 MB, free: 122.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007546/0.5268, allocations: 1.371 MB / 499.6 MB, free: 121.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006929/0.5275, allocations: 120.8 kB / 499.8 MB, free: 121.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.402e-05/0.5276, allocations: 67.98 kB / 499.8 MB, free: 121.2 MB / 430.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.0003785/0.528, allocations: 300.5 kB / 0.4884 GB, free: 120.9 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001965/0.5282, allocations: 111.3 kB / 0.4885 GB, free: 120.8 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003675/0.5319, allocations: 4.633 MB / 0.493 GB, free: 116.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.934e-05/0.5319, allocations: 47.86 kB / 0.4931 GB, free: 116.2 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.5319, allocations: 8 kB / 0.4931 GB, free: 116.1 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.5319, allocations: 3.984 kB / 0.4931 GB, free: 116.1 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003836/0.5358, allocations: 4.276 MB / 0.4973 GB, free: 111.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.5358, allocations: 0 / 0.4973 GB, free: 111.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007847/0.5365, allocations: 175.7 kB / 0.4974 GB, free: 111.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001404/0.538, allocations: 0.6771 MB / 0.4981 GB, free: 111 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.418e-05/0.538, allocations: 23.98 kB / 0.4981 GB, free: 111 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001118/0.5391, allocations: 1.775 MB / 0.4998 GB, free: 109.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.5391, allocations: 96 / 0.4998 GB, free: 109.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.5411, allocations: 2.026 MB / 0.5018 GB, free: 107.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/0.5413, allocations: 186.1 kB / 0.502 GB, free: 106.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001606/0.5414, allocations: 36.91 kB / 0.502 GB, free: 106.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004771/0.5419, allocations: 20 kB / 0.5021 GB, free: 106.9 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.226e-05/0.542, allocations: 58.92 kB / 0.5021 GB, free: 106.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.051e-05/0.542, allocations: 35.98 kB / 0.5021 GB, free: 106.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006894/0.5427, allocations: 0.7205 MB / 0.5029 GB, free: 106.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5427, allocations: 0 / 0.5029 GB, free: 106.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002801/0.5455, allocations: 1.308 MB / 0.5041 GB, free: 104.8 MB / 430.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.004179/0.5497, allocations: 1.41 MB / 0.5055 GB, free: 103.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.5518, allocations: 1.229 MB / 0.5067 GB, free: 102.3 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5518, allocations: 4 kB / 0.5067 GB, free: 102.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00122/0.5531, allocations: 0.7433 MB / 0.5074 GB, free: 101.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002652/0.5557, allocations: 0.5773 MB / 0.508 GB, free: 101 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003157/0.5589, allocations: 3.091 MB / 0.511 GB, free: 97.86 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.5593, allocations: 0.7385 MB / 0.5117 GB, free: 97.08 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008317/0.5601, allocations: 0.6034 MB / 0.5123 GB, free: 96.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.5604, allocations: 120.4 kB / 0.5124 GB, free: 96.38 MB / 430.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5604, allocations: 0 / 0.5124 GB, free: 96.38 MB / 430.1 MB Notification: Performance of Templates: time 0.05911/0.6195, allocations: 54.64 MB / 0.5658 GB, free: 42.16 MB / 430.1 MB " [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: 8.558335166424513]