Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00223/0.00223, allocations: 209.7 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.45/1.45, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_1_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_1_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 47.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2517, allocations: 53.35 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06599/0.3177, allocations: 57.56 MB / 488.6 MB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02864/0.3464, allocations: 20.08 MB / 0.4968 GB, free: 8.773 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009985/0.3473, allocations: 43.62 kB / 0.4968 GB, free: 8.73 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001875/0.3492, allocations: 0.6635 MB / 0.4975 GB, free: 8.062 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01629/0.3655, allocations: 5.817 MB / 0.5031 GB, free: 2.242 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009392/0.3749, allocations: 3.434 MB / 0.5065 GB, free: 14.81 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01883/0.3937, allocations: 9.098 MB / 0.5154 GB, free: 5.594 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.395, allocations: 0.5803 MB / 0.516 GB, free: 5.004 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002074/0.3971, allocations: 1.078 MB / 0.517 GB, free: 3.922 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001309/0.3984, allocations: 0.8596 MB / 0.5178 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001598/0.3986, allocations: 92 kB / 0.5179 GB, free: 2.969 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01495/0.4135, allocations: 7.594 MB / 0.5253 GB, free: 11.37 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005018/0.414, allocations: 302.8 kB / 0.5256 GB, free: 11.07 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009087/0.4149, allocations: 0.5872 MB / 0.5262 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01201/0.4269, allocations: 5.778 MB / 0.5319 GB, free: 4.688 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.4269, allocations: 0 / 0.5319 GB, free: 4.688 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4269, allocations: 4 kB / 0.5319 GB, free: 4.684 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.951e-05/0.427, allocations: 0 / 0.5319 GB, free: 4.684 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.006378/0.4333, allocations: 2.456 MB / 0.5343 GB, free: 2.184 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.4334, allocations: 8.031 kB / 0.5343 GB, free: 2.176 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001936/0.4336, allocations: 156.5 kB / 0.5344 GB, free: 2.016 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004831/0.4384, allocations: 0.6634 MB / 0.5351 GB, free: 1.352 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002292/0.4407, allocations: 0.9721 MB / 0.536 GB, free: 356 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.988e-05/0.4408, allocations: 78.14 kB / 0.5361 GB, free: 276 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.4409, allocations: 96 kB / 0.5362 GB, free: 180 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2003/0.6413, allocations: 1.972 MB / 0.5381 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.124e-05/0.6413, allocations: 6.219 kB / 0.5381 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.6414, allocations: 45.59 kB / 0.5381 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.049e-05/0.6414, allocations: 30.23 kB / 0.5382 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003321/0.6447, allocations: 1.459 MB / 0.5396 GB, free: 107.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008216/0.653, allocations: 6.4 MB / 0.5459 GB, free: 103 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002583/0.6555, allocations: 1.036 MB / 0.5469 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000499/0.656, allocations: 357.9 kB / 0.5472 GB, free: 102.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1048/0.7609, allocations: 34.84 MB / 0.5812 GB, free: 70.24 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.7609, allocations: 50.94 kB / 0.5813 GB, free: 70.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.715e-06/0.7609, allocations: 0 / 0.5813 GB, free: 70.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005337/0.7663, allocations: 1.908 MB / 0.5831 GB, free: 68.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.7663, allocations: 192.4 kB / 0.5833 GB, free: 68.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009582/0.7673, allocations: 0.9828 MB / 0.5843 GB, free: 67.05 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.953e-05/0.7673, allocations: 41.7 kB / 0.5843 GB, free: 67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002586/0.7676, allocations: 0.5844 MB / 0.5849 GB, free: 66.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.7677, allocations: 288.2 kB / 0.5852 GB, free: 66.21 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003099/0.768, allocations: 238.8 kB / 0.5854 GB, free: 65.97 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.92e-05/0.7681, allocations: 345.9 kB / 0.5857 GB, free: 65.63 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004175/0.7685, allocations: 302.5 kB / 0.586 GB, free: 65.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006256/0.7691, allocations: 0.8447 MB / 0.5868 GB, free: 64.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.7702, allocations: 1.098 MB / 0.5879 GB, free: 62.97 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.7702, allocations: 4 kB / 0.5879 GB, free: 62.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001752/0.772, allocations: 1.246 MB / 0.5891 GB, free: 61.72 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.772, allocations: 16.03 kB / 0.5891 GB, free: 61.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.772, allocations: 16 kB / 0.5892 GB, free: 61.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003325/0.7753, allocations: 0.5269 MB / 0.5897 GB, free: 61.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.7764, allocations: 275.4 kB / 0.5899 GB, free: 60.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007293/0.7771, allocations: 1.376 MB / 0.5913 GB, free: 59.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007898/0.7779, allocations: 134.4 kB / 0.5914 GB, free: 59.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.114e-05/0.778, allocations: 68.03 kB / 0.5915 GB, free: 59.3 MB / 446.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.0004487/0.7784, allocations: 296.8 kB / 0.5918 GB, free: 59.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001983/0.7786, allocations: 135.1 kB / 0.5919 GB, free: 58.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003688/0.7823, allocations: 4.583 MB / 0.5964 GB, free: 54.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.947e-05/0.7823, allocations: 43.92 kB / 0.5964 GB, free: 54.28 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.7823, allocations: 8 kB / 0.5964 GB, free: 54.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.7823, allocations: 7.922 kB / 0.5964 GB, free: 54.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004107/0.7864, allocations: 4.442 MB / 0.6008 GB, free: 49.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.7865, allocations: 4 kB / 0.6008 GB, free: 49.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007609/0.7872, allocations: 171.7 kB / 0.6009 GB, free: 49.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001354/0.7886, allocations: 0.6761 MB / 0.6016 GB, free: 48.97 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.065e-05/0.7886, allocations: 23.98 kB / 0.6016 GB, free: 48.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009499/0.7896, allocations: 1.775 MB / 0.6033 GB, free: 47.12 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.7896, allocations: 4.094 kB / 0.6033 GB, free: 47.12 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.7915, allocations: 2.031 MB / 0.6053 GB, free: 45.03 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002554/0.7918, allocations: 200.6 kB / 0.6055 GB, free: 44.85 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001706/0.7919, allocations: 43.72 kB / 0.6056 GB, free: 44.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005365/0.7925, allocations: 19.28 kB / 0.6056 GB, free: 44.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.81e-05/0.7926, allocations: 64.48 kB / 0.6056 GB, free: 44.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.842e-05/0.7926, allocations: 31.98 kB / 0.6057 GB, free: 44.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007913/0.7934, allocations: 0.8303 MB / 0.6065 GB, free: 43.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7934, allocations: 0 / 0.6065 GB, free: 43.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002952/0.7963, allocations: 1.298 MB / 0.6078 GB, free: 42.57 MB / 446.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.005714/0.8021, allocations: 3.742 MB / 0.6114 GB, free: 38.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002185/0.8042, allocations: 1.237 MB / 0.6126 GB, free: 37.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.8042, allocations: 4 kB / 0.6126 GB, free: 37.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.8055, allocations: 0.7539 MB / 0.6134 GB, free: 36.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002943/0.8084, allocations: 0.7215 MB / 0.6141 GB, free: 36.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01211/0.8205, allocations: 11.16 MB / 0.625 GB, free: 24.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004592/0.821, allocations: 0.7353 MB / 0.6257 GB, free: 23.72 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001115/0.8221, allocations: 0.6294 MB / 0.6263 GB, free: 23.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005673/0.8227, allocations: 0.6711 MB / 0.6269 GB, free: 22.42 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.8227, allocations: 0 / 0.6269 GB, free: 22.42 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1268/0.9494, allocations: 76.1 MB / 0.7013 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.82/16.76, allocations: 11.48 kB / 0.7013 GB, free: 10.86 MB / 0.4981 GB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 20.341082781989826]