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.00173/0.00173, allocations: 112.4 kB / 16.92 MB, free: 6.145 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.002019/0.002019, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.206/2.206, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 47.33 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1634, allocations: 49.45 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.03215/0.1956, allocations: 12.9 MB / 363.1 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3198/0.5155, allocations: 11.54 MB / 374.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.5157, allocations: 1.031 kB / 374.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004938/0.5162, allocations: 71.42 kB / 374.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004574/0.5167, allocations: 85.67 kB / 374.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02414/0.5409, allocations: 5.072 MB / 379.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005457/0.5415, allocations: 231.1 kB / 380 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.064e-05/0.5416, allocations: 13.12 kB / 380.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006116/0.5422, allocations: 194.5 kB / 380.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.5424, allocations: 73.95 kB / 380.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.022e-05/0.5424, allocations: 7.375 kB / 380.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02047/0.5629, allocations: 6.822 MB / 387.2 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001395/0.5631, allocations: 34.72 kB / 387.2 MB, free: 7.352 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.5633, allocations: 70.25 kB / 387.3 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0162/0.5796, allocations: 3.876 MB / 391.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.826e-06/0.5796, allocations: 1.906 kB / 391.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5796, allocations: 4 kB / 391.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.657e-06/0.5797, allocations: 0 / 391.1 MB, free: 5.02 MB / 302.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.007829/0.5875, allocations: 1.136 MB / 392.3 MB, free: 4.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/0.5876, allocations: 13.62 kB / 392.3 MB, free: 4.223 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.989e-05/0.5877, allocations: 52.17 kB / 392.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000751/0.5884, allocations: 53.58 kB / 392.4 MB, free: 4.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/0.5887, allocations: 216.6 kB / 392.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.887e-05/0.5888, allocations: 11.53 kB / 392.6 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.639e-05/0.5889, allocations: 17.91 kB / 392.6 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.5906, allocations: 385.6 kB / 393 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.567e-05/0.5907, allocations: 13.12 kB / 393 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.043e-05/0.5907, allocations: 6.906 kB / 393 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.5907, allocations: 6.984 kB / 393 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002071/0.5928, allocations: 358.3 kB / 393.4 MB, free: 3.434 MB / 302.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.00166/0.5945, allocations: 1.19 MB / 394.6 MB, free: 2.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.5957, allocations: 282.2 kB / 394.8 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003958/0.5961, allocations: 110.7 kB / 395 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1539/0.75, allocations: 47.45 MB / 442.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.774e-05/0.7502, allocations: 42.5 kB / 442.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 4.088e-06/0.7502, allocations: 0 / 442.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.0109/0.7611, allocations: 1.58 MB / 444 MB, free: 13.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.7e-05/0.7612, allocations: 110.8 kB / 444.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.7614, allocations: 129.7 kB / 444.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.631e-05/0.7615, allocations: 29.7 kB / 444.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.7616, allocations: 100.6 kB / 444.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.7618, allocations: 125.2 kB / 444.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.7619, allocations: 65.59 kB / 444.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.7622, allocations: 330.8 kB / 444.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005559/0.7627, allocations: 128.8 kB / 445 MB, free: 12.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006317/0.7634, allocations: 202.5 kB / 445.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.7646, allocations: 356.3 kB / 445.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.7647, allocations: 0 / 445.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001715/0.7664, allocations: 422 kB / 446 MB, free: 11.49 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.7664, allocations: 8 kB / 446 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.7665, allocations: 7.922 kB / 446 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003904/0.7669, allocations: 36.84 kB / 446 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007528/0.7676, allocations: 95.97 kB / 446.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005946/0.7682, allocations: 0.5484 MB / 446.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005491/0.7688, allocations: 19.98 kB / 446.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.66e-05/0.7689, allocations: 19.92 kB / 446.7 MB, free: 10.73 MB / 366.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.0003181/0.7692, allocations: 145.8 kB / 446.9 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.7694, allocations: 11.91 kB / 446.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003909/0.7734, allocations: 1.447 MB / 448.3 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.794e-05/0.7734, allocations: 19.97 kB / 448.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-06/0.7735, allocations: 0 / 448.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.7735, allocations: 3.984 kB / 448.3 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005384/0.7789, allocations: 1.976 MB / 450.3 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.7789, allocations: 0 / 450.3 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00084/0.7798, allocations: 87.86 kB / 450.4 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005976/0.7804, allocations: 72.83 kB / 450.5 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-05/0.7805, allocations: 11.98 kB / 450.5 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006186/0.7811, allocations: 0.5874 MB / 451.1 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.7811, allocations: 0 / 451.1 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003673/0.7848, allocations: 1.693 MB / 452.8 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.785, allocations: 124.4 kB / 452.9 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.882e-05/0.7851, allocations: 16 kB / 452.9 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006433/0.7858, allocations: 23.41 kB / 452.9 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.7859, allocations: 35.95 kB / 453 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.83e-05/0.786, allocations: 15.98 kB / 453 MB, free: 4.312 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.823e-05/0.7861, allocations: 95.2 kB / 453.1 MB, free: 4.219 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7861, allocations: 4 kB / 453.1 MB, free: 4.215 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.005357/0.7915, allocations: 0.9488 MB / 454 MB, free: 3.266 MB / 366.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.01336/0.8049, allocations: 3.27 MB / 457.3 MB, free: 56 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002689/0.8076, allocations: 0.6314 MB / 457.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.8076, allocations: 3.938 kB / 457.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.8089, allocations: 0.5092 MB / 458.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/0.8103, allocations: 73.28 kB / 458.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01381/0.8241, allocations: 3.898 MB / 462.4 MB, free: 10.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007343/0.8249, allocations: 0.8178 MB / 463.2 MB, free: 9.949 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008073/0.8258, allocations: 148.4 kB / 463.4 MB, free: 9.805 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000375/0.8261, allocations: 127.4 kB / 463.5 MB, free: 9.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.8262, allocations: 0 / 463.5 MB, free: 9.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1278/0.9539, allocations: 40.54 MB / 0.4922 GB, free: 1.203 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.07/22.03, allocations: 0 / 0.4922 GB, free: 1.203 MB / 414.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