Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.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: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 109 kB / 17.06 MB, free: 6.016 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.00123/0.00123, allocations: 192 kB / 18 MB, free: 5.102 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.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.256, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01672/0.2728, allocations: 12.9 MB / 413.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01405/0.2869, allocations: 11.54 MB / 424.7 MB, free: 272 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.2871, allocations: 4 kB / 424.7 MB, free: 268 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003364/0.2874, allocations: 71.61 kB / 424.7 MB, free: 196 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000296/0.2877, allocations: 83.38 kB / 424.8 MB, free: 112 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01292/0.3007, allocations: 5.074 MB / 429.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003827/0.3011, allocations: 230.9 kB / 430.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.696e-05/0.3012, allocations: 17.38 kB / 430.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000459/0.3016, allocations: 199.3 kB / 430.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.3018, allocations: 75.73 kB / 430.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.069e-05/0.3018, allocations: 4 kB / 430.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01296/0.3148, allocations: 6.981 MB / 437.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.764e-05/0.3149, allocations: 27.89 kB / 437.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.315, allocations: 71.67 kB / 437.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008019/0.323, allocations: 3.871 MB / 441.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3231, allocations: 4 kB / 441.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.278e-06/0.3231, allocations: 4 kB / 441.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.3231, allocations: 3.938 kB / 441.4 MB, free: 15.54 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.004682/0.3278, allocations: 1.159 MB / 442.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.3278, allocations: 12.03 kB / 442.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.568e-05/0.3279, allocations: 50.73 kB / 442.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000472/0.3284, allocations: 56.73 kB / 442.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.3288, allocations: 224.1 kB / 442.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.127e-05/0.3288, allocations: 12.66 kB / 442.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.3289, allocations: 20.08 kB / 442.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.3302, allocations: 392.9 kB / 443.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.3302, allocations: 0 / 443.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.3302, allocations: 4 kB / 443.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.3303, allocations: 7.984 kB / 443.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.3317, allocations: 355.5 kB / 443.6 MB, free: 13.14 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/0.3332, allocations: 1.184 MB / 444.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008785/0.3341, allocations: 271.8 kB / 445.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.3344, allocations: 116.2 kB / 445.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1011/0.4355, allocations: 47.66 MB / 492.9 MB, free: 6.168 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.439e-05/0.4355, allocations: 34.56 kB / 492.9 MB, free: 6.125 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.455e-06/0.4356, allocations: 0 / 492.9 MB, free: 6.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.007213/0.4428, allocations: 1.582 MB / 494.5 MB, free: 4.488 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.334e-05/0.4429, allocations: 110.8 kB / 494.6 MB, free: 4.355 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.443, allocations: 113.8 kB / 494.7 MB, free: 4.234 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.306e-05/0.4431, allocations: 33.7 kB / 494.7 MB, free: 4.195 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.629e-05/0.4431, allocations: 108.5 kB / 494.8 MB, free: 4.086 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.4433, allocations: 126.9 kB / 495 MB, free: 3.961 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.4434, allocations: 73.47 kB / 495 MB, free: 3.883 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.4436, allocations: 330.8 kB / 495.4 MB, free: 3.551 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004172/0.444, allocations: 131.9 kB / 495.5 MB, free: 3.422 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000492/0.4445, allocations: 206.5 kB / 495.7 MB, free: 3.195 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008879/0.4454, allocations: 346.6 kB / 496 MB, free: 2.832 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4454, allocations: 4 kB / 496 MB, free: 2.828 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001181/0.4466, allocations: 430.2 kB / 496.4 MB, free: 2.398 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.4466, allocations: 4.375 kB / 496.5 MB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.4467, allocations: 4 kB / 496.5 MB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002588/0.4469, allocations: 32.83 kB / 496.5 MB, free: 2.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004793/0.4474, allocations: 87.88 kB / 496.6 MB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004346/0.4479, allocations: 0.56 MB / 497.1 MB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002867/0.4482, allocations: 24 kB / 497.2 MB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.93e-05/0.4482, allocations: 16 kB / 497.2 MB, free: 1.645 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001561/0.4484, allocations: 129.8 kB / 497.3 MB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.4485, allocations: 19.89 kB / 497.3 MB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002362/0.4508, allocations: 1.457 MB / 498.8 MB, free: 20 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.678e-05/0.4509, allocations: 19.97 kB / 498.8 MB, free: 0 / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.221e-05/0.4509, allocations: 4.047 kB / 498.8 MB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.4509, allocations: 3.938 kB / 498.8 MB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003192/0.4541, allocations: 1.975 MB / 0.489 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.4542, allocations: 7.938 kB / 0.489 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000447/0.4546, allocations: 79.86 kB / 0.4891 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003328/0.455, allocations: 76.81 kB / 0.4892 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.336e-05/0.455, allocations: 19.98 kB / 0.4892 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004208/0.4554, allocations: 0.5836 MB / 0.4898 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.4555, allocations: 4.031 kB / 0.4898 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002473/0.4579, allocations: 1.694 MB / 0.4914 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.4581, allocations: 136.8 kB / 0.4916 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.998e-05/0.4581, allocations: 8 kB / 0.4916 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003711/0.4585, allocations: 27.92 kB / 0.4916 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.51e-05/0.4586, allocations: 35.89 kB / 0.4916 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.715e-05/0.4586, allocations: 15.98 kB / 0.4917 GB, free: 11.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.512e-05/0.4587, allocations: 87.28 kB / 0.4917 GB, free: 11.09 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4587, allocations: 0 / 0.4917 GB, free: 11.09 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002545/0.4613, allocations: 0.9708 MB / 0.4927 GB, free: 10.12 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007072/0.4684, allocations: 3.275 MB / 0.4959 GB, free: 6.801 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001482/0.4699, allocations: 0.608 MB / 0.4965 GB, free: 6.191 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.4699, allocations: 288 / 0.4965 GB, free: 6.191 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008772/0.4708, allocations: 0.5131 MB / 0.497 GB, free: 5.676 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007699/0.4715, allocations: 83.86 kB / 0.4971 GB, free: 5.594 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007392/0.4789, allocations: 3.918 MB / 0.5009 GB, free: 1.523 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/0.4795, allocations: 0.8178 MB / 0.5017 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000383/0.4798, allocations: 133.7 kB / 0.5018 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000241/0.4801, allocations: 131.4 kB / 0.5019 GB, free: 428 kB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4801, allocations: 3.938 kB / 0.5019 GB, free: 424 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2662/0.7463, allocations: 40.53 MB / 0.5415 GB, free: 139.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.2/14.94, allocations: 13.83 kB / 0.5415 GB, free: 139.2 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches