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.001106/0.001106, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001128/0.001128, allocations: 194.9 kB / 18 MB, free: 5.172 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.264/1.264, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009756/0.0009757, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2371, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01541/0.2526, allocations: 12.91 MB / 413.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01334/0.2659, allocations: 11.54 MB / 424.7 MB, free: 276 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.2661, allocations: 4 kB / 424.7 MB, free: 272 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003418/0.2665, allocations: 79.55 kB / 424.7 MB, free: 192 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000298/0.2668, allocations: 75.44 kB / 424.8 MB, free: 116 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01497/0.2818, allocations: 5.084 MB / 429.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000347/0.2822, allocations: 238.9 kB / 430.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.303e-05/0.2822, allocations: 5.453 kB / 430.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004355/0.2827, allocations: 191.3 kB / 430.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.2828, allocations: 75.73 kB / 430.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.126e-05/0.2828, allocations: 11.94 kB / 430.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01155/0.2944, allocations: 6.989 MB / 437.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.722e-05/0.2945, allocations: 31.89 kB / 437.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.2946, allocations: 71.67 kB / 437.5 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007316/0.302, allocations: 3.874 MB / 441.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.302, allocations: 4 kB / 441.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.302, allocations: 0 / 441.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.302, allocations: 0 / 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.00455/0.3066, allocations: 1.163 MB / 442.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3066, allocations: 8.031 kB / 442.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.982e-05/0.3067, allocations: 46.73 kB / 442.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004911/0.3072, allocations: 52.8 kB / 442.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.3075, allocations: 224.1 kB / 442.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.242e-05/0.3075, allocations: 16.66 kB / 442.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.273e-05/0.3076, allocations: 20.08 kB / 442.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.3089, allocations: 388.9 kB / 443.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.3089, allocations: 4 kB / 443.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.3089, allocations: 4 kB / 443.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.309, allocations: 4 kB / 443.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.3104, 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.00135/0.3118, allocations: 1.176 MB / 444.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008686/0.3127, allocations: 285.2 kB / 445.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000285/0.313, allocations: 114.9 kB / 445.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09626/0.4092, allocations: 47.66 MB / 492.9 MB, free: 6.168 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.4093, allocations: 34.56 kB / 492.9 MB, free: 6.125 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 3.406e-06/0.4093, allocations: 0 / 492.9 MB, free: 6.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.006941/0.4163, allocations: 1.582 MB / 494.5 MB, free: 4.488 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/0.4164, allocations: 110.8 kB / 494.6 MB, free: 4.355 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.965e-05/0.4165, allocations: 125.7 kB / 494.7 MB, free: 4.223 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.4165, allocations: 29.7 kB / 494.7 MB, free: 4.188 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.622e-05/0.4166, allocations: 108.6 kB / 494.8 MB, free: 4.078 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.824e-05/0.4167, allocations: 126.9 kB / 495 MB, free: 3.953 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.4168, allocations: 73.47 kB / 495 MB, free: 3.875 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.417, allocations: 326.8 kB / 495.4 MB, free: 3.547 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004075/0.4174, allocations: 135.9 kB / 495.5 MB, free: 3.414 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/0.4178, allocations: 206.5 kB / 495.7 MB, free: 3.188 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008193/0.4186, allocations: 342.6 kB / 496 MB, free: 2.828 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4187, allocations: 4 kB / 496 MB, free: 2.824 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001123/0.4198, allocations: 430 kB / 496.5 MB, free: 2.395 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.4198, allocations: 8 kB / 496.5 MB, free: 2.387 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.4198, allocations: 0 / 496.5 MB, free: 2.387 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002404/0.4201, allocations: 32.84 kB / 496.5 MB, free: 2.352 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004781/0.4206, allocations: 91.81 kB / 496.6 MB, free: 2.262 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003922/0.421, allocations: 0.5564 MB / 497.1 MB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/0.4213, allocations: 20.02 kB / 497.2 MB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.758e-05/0.4213, allocations: 19.98 kB / 497.2 MB, free: 1.641 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.0001618/0.4215, allocations: 129.8 kB / 497.3 MB, free: 1.504 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.4216, allocations: 15.91 kB / 497.3 MB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002125/0.4237, allocations: 1.45 MB / 498.8 MB, free: 24 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.325e-05/0.4238, allocations: 28.02 kB / 498.8 MB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4238, allocations: 3.938 kB / 498.8 MB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.4239, allocations: 4 kB / 498.8 MB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.4268, allocations: 1.979 MB / 0.489 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.4269, allocations: 4 kB / 0.4891 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000449/0.4273, allocations: 79.86 kB / 0.4891 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003151/0.4276, allocations: 72.88 kB / 0.4892 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.843e-05/0.4277, allocations: 16.36 kB / 0.4892 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003773/0.4281, allocations: 0.5914 MB / 0.4898 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4281, allocations: 0 / 0.4898 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/0.4303, allocations: 1.698 MB / 0.4915 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.718e-05/0.4305, allocations: 132.6 kB / 0.4916 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.291e-05/0.4305, allocations: 8 kB / 0.4916 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003722/0.4309, allocations: 31.95 kB / 0.4916 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.876e-05/0.431, allocations: 27.97 kB / 0.4916 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.894e-05/0.431, allocations: 15.98 kB / 0.4917 GB, free: 11.19 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.924e-05/0.4311, allocations: 91.27 kB / 0.4917 GB, free: 11.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4311, allocations: 0 / 0.4917 GB, free: 11.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002523/0.4336, 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.006882/0.4405, allocations: 3.284 MB / 0.4959 GB, free: 6.793 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.4421, allocations: 0.6118 MB / 0.4965 GB, free: 6.18 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.4421, allocations: 0 / 0.4965 GB, free: 6.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000852/0.4429, allocations: 0.5093 MB / 0.497 GB, free: 5.668 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000806/0.4438, allocations: 80.14 kB / 0.4971 GB, free: 5.59 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007179/0.451, allocations: 3.913 MB / 0.5009 GB, free: 1.527 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.4513, allocations: 0.8139 MB / 0.5017 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003621/0.4517, allocations: 137.8 kB / 0.5018 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.4519, allocations: 131.4 kB / 0.5019 GB, free: 428 kB / 430.1 MB Notification: Performance of SimCode: time 2.084e-06/0.452, allocations: 4 kB / 0.5019 GB, free: 424 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2465/0.6984, allocations: 40.53 MB / 0.5415 GB, free: 139.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.51/14.21, allocations: 16.23 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