Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 111 kB / 17.74 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 192.4 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009684/0.0009685, allocations: 43.92 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2639, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.05464/0.3186, allocations: 62.85 MB / 464.2 MB, free: 9.824 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02506/0.3437, allocations: 22.46 MB / 486.7 MB, free: 3.289 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.3451, allocations: 27.81 kB / 486.7 MB, free: 3.262 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.3469, allocations: 0.7296 MB / 487.5 MB, free: 2.527 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01411/0.3611, allocations: 5.803 MB / 493.3 MB, free: 12.72 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008515/0.3696, allocations: 3.442 MB / 496.7 MB, free: 9.277 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01683/0.3865, allocations: 9.052 MB / 0.4939 GB, free: 112 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0014/0.3879, allocations: 0.7 MB / 0.4946 GB, free: 15.4 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002028/0.3899, allocations: 1.062 MB / 0.4956 GB, free: 14.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001009/0.391, allocations: 0.8324 MB / 0.4964 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001517/0.3911, allocations: 92 kB / 0.4965 GB, free: 13.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01478/0.4059, allocations: 7.657 MB / 0.504 GB, free: 5.746 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004602/0.4064, allocations: 290.9 kB / 0.5043 GB, free: 5.461 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009633/0.4074, allocations: 0.7153 MB / 0.505 GB, free: 4.742 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01278/0.4202, allocations: 5.749 MB / 0.5106 GB, free: 14.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.4202, allocations: 0 / 0.5106 GB, free: 14.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4203, allocations: 4 kB / 0.5106 GB, free: 14.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.691e-05/0.4203, allocations: 0 / 0.5106 GB, free: 14.98 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.006534/0.4268, allocations: 2.47 MB / 0.513 GB, free: 12.45 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.4269, allocations: 8.031 kB / 0.513 GB, free: 12.44 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00477/0.4317, allocations: 0.6549 MB / 0.5137 GB, free: 11.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002318/0.434, allocations: 1.047 MB / 0.5147 GB, free: 10.69 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.176e-05/0.4341, allocations: 74.39 kB / 0.5148 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/0.4343, allocations: 99.94 kB / 0.5148 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003881/0.4382, allocations: 1.675 MB / 0.5165 GB, free: 8.691 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/0.4382, allocations: 3.938 kB / 0.5165 GB, free: 8.688 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001379/0.4384, allocations: 48 kB / 0.5165 GB, free: 8.641 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.675e-05/0.4384, allocations: 24 kB / 0.5166 GB, free: 8.617 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003617/0.442, allocations: 1.467 MB / 0.518 GB, free: 7.152 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01047/0.4525, allocations: 8.392 MB / 0.5262 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003186/0.4557, allocations: 1.692 MB / 0.5278 GB, free: 12.29 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006689/0.4564, allocations: 417.2 kB / 0.5282 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.358/0.8145, allocations: 63.65 MB / 0.5904 GB, free: 70.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/0.8146, allocations: 46.94 kB / 0.5904 GB, free: 70.09 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 3.226e-06/0.8146, allocations: 5.969 kB / 0.5904 GB, free: 70.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.00539/0.82, allocations: 1.99 MB / 0.5924 GB, free: 68.59 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.8201, allocations: 196.3 kB / 0.5926 GB, free: 68.36 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009875/0.8211, allocations: 0.9574 MB / 0.5935 GB, free: 67.64 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.304e-05/0.8211, allocations: 40.52 kB / 0.5936 GB, free: 67.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003013/0.8214, allocations: 0.572 MB / 0.5941 GB, free: 67.31 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.8216, allocations: 277.8 kB / 0.5944 GB, free: 67.08 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002474/0.8219, allocations: 230.7 kB / 0.5946 GB, free: 66.93 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.849e-05/0.8219, allocations: 355.9 kB / 0.5949 GB, free: 66.59 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004314/0.8224, allocations: 299.1 kB / 0.5952 GB, free: 66.41 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006064/0.823, allocations: 0.7474 MB / 0.5959 GB, free: 65.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.8241, allocations: 1.093 MB / 0.597 GB, free: 64.66 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.8241, allocations: 8 kB / 0.597 GB, free: 64.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001805/0.8259, allocations: 1.245 MB / 0.5982 GB, free: 63.82 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.826, allocations: 13.31 kB / 0.5983 GB, free: 63.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.826, allocations: 12 kB / 0.5983 GB, free: 63.79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00307/0.8291, allocations: 0.5282 MB / 0.5988 GB, free: 63.31 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009909/0.8301, allocations: 276.6 kB / 0.599 GB, free: 63.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008081/0.8309, allocations: 1.379 MB / 0.6004 GB, free: 61.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008214/0.8317, allocations: 129.5 kB / 0.6005 GB, free: 61.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.339e-05/0.8318, allocations: 63.28 kB / 0.6006 GB, free: 61.59 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.0004734/0.8323, allocations: 296.2 kB / 0.6009 GB, free: 61.39 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002122/0.8325, allocations: 122.6 kB / 0.601 GB, free: 61.27 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003597/0.8361, allocations: 4.494 MB / 0.6054 GB, free: 57.57 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-05/0.8362, allocations: 43.92 kB / 0.6054 GB, free: 57.53 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.8362, allocations: 4 kB / 0.6054 GB, free: 57.52 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.8362, allocations: 3.984 kB / 0.6054 GB, free: 57.52 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004086/0.8403, allocations: 4.939 MB / 0.6102 GB, free: 52.42 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.8404, allocations: 4 kB / 0.6102 GB, free: 52.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000728/0.8411, allocations: 166.4 kB / 0.6104 GB, free: 52.26 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001468/0.8426, allocations: 0.6645 MB / 0.611 GB, free: 51.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.28e-05/0.8426, allocations: 23.98 kB / 0.6111 GB, free: 51.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009382/0.8436, allocations: 1.759 MB / 0.6128 GB, free: 49.77 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.8436, allocations: 3.844 kB / 0.6128 GB, free: 49.77 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001911/0.8455, allocations: 2.027 MB / 0.6148 GB, free: 47.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002899/0.8458, allocations: 266.3 kB / 0.615 GB, free: 47.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/0.846, allocations: 39.62 kB / 0.6151 GB, free: 47.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004975/0.8465, allocations: 20 kB / 0.6151 GB, free: 47.34 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.44e-05/0.8466, allocations: 60.05 kB / 0.6151 GB, free: 47.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.491e-05/0.8466, allocations: 31.98 kB / 0.6152 GB, free: 47.26 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008416/0.8475, allocations: 0.8342 MB / 0.616 GB, free: 46.42 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.8475, allocations: 0 / 0.616 GB, free: 46.42 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003138/0.8506, allocations: 1.283 MB / 0.6172 GB, free: 45.23 MB / 462.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.004227/0.8549, allocations: 1.256 MB / 0.6185 GB, free: 44.19 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002387/0.8573, allocations: 1.263 MB / 0.6197 GB, free: 42.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.8573, allocations: 0 / 0.6197 GB, free: 42.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.8587, allocations: 0.914 MB / 0.6206 GB, free: 42.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003362/0.8621, allocations: 0.7216 MB / 0.6213 GB, free: 41.37 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003913/0.866, allocations: 3.074 MB / 0.6243 GB, free: 38.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006136/0.8667, allocations: 1.316 MB / 0.6256 GB, free: 36.93 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/0.867, allocations: 127.4 kB / 0.6257 GB, free: 36.81 MB / 462.1 MB Notification: Performance of SimCode: time 1.543e-06/0.867, allocations: 0 / 0.6257 GB, free: 36.81 MB / 462.1 MB Notification: Performance of Templates: time 0.05594/0.9229, allocations: 51.32 MB / 0.6758 GB, free: 1.594 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,suddenExpansion1.dp,suddenExpansion1.m_flow,suddenExpansion1.port_b_T,suddenExpansion2.dp,suddenExpansion2.m_flow,suddenExpansion2.port_b_T Variables in the result:suddenExpansion1.dp,suddenExpansion1.m_flow,suddenExpansion1.port_b_T,suddenExpansion2.dp,suddenExpansion2.m_flow,suddenExpansion2.port_b_T,time