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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001989/0.001989, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00225/0.00225, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 51.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2415, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01722/0.2587, allocations: 13.01 MB / 435.6 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01489/0.2736, allocations: 11.62 MB / 447.2 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.2737, allocations: 0 / 447.2 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003933/0.2741, allocations: 79.55 kB / 447.3 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003109/0.2745, allocations: 83.42 kB / 447.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01364/0.2881, allocations: 5.086 MB / 452.5 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000416/0.2885, allocations: 246.8 kB / 452.7 MB, free: 404 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.11e-05/0.2886, allocations: 5.641 kB / 452.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004852/0.2891, allocations: 203.3 kB / 452.9 MB, free: 188 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.2892, allocations: 71.75 kB / 453 MB, free: 116 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.2892, allocations: 8 kB / 453 MB, free: 108 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01344/0.3027, allocations: 7.005 MB / 460 MB, free: 9.094 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.063e-05/0.3028, allocations: 23.92 kB / 460 MB, free: 9.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.3029, allocations: 75.66 kB / 460.1 MB, free: 8.996 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008014/0.3109, allocations: 3.878 MB / 464 MB, free: 5.109 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3109, allocations: 0 / 464 MB, free: 5.109 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3109, allocations: 0 / 464 MB, free: 5.109 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.3109, allocations: 0 / 464 MB, free: 5.109 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.004731/0.3156, allocations: 1.088 MB / 465.1 MB, free: 3.988 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.3157, allocations: 8.031 kB / 465.1 MB, free: 3.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.125e-05/0.3158, allocations: 50.73 kB / 465.1 MB, free: 3.922 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004606/0.3162, allocations: 52.8 kB / 465.2 MB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003477/0.3166, allocations: 162.3 kB / 465.3 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.3166, allocations: 16.66 kB / 465.4 MB, free: 3.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.544e-05/0.3167, allocations: 28.02 kB / 465.4 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.3179, allocations: 384.8 kB / 465.8 MB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.318, allocations: 4 kB / 465.8 MB, free: 3.234 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.318, allocations: 4 kB / 465.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.318, allocations: 4 kB / 465.8 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.3194, allocations: 355.5 kB / 466.1 MB, free: 2.879 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.001546/0.321, allocations: 1.156 MB / 467.3 MB, free: 1.629 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008752/0.3218, allocations: 271.8 kB / 467.5 MB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002858/0.3221, allocations: 114.8 kB / 467.7 MB, free: 1.215 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.122/0.4442, allocations: 25.05 MB / 492.7 MB, free: 8.133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.256e-05/0.4442, allocations: 34.56 kB / 492.7 MB, free: 8.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 3.867e-06/0.4442, allocations: 4 kB / 492.7 MB, free: 8.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.01325/0.4575, allocations: 1.495 MB / 494.2 MB, free: 6.559 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.4576, allocations: 110.8 kB / 494.4 MB, free: 6.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.4578, allocations: 125.8 kB / 494.5 MB, free: 6.293 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.124e-05/0.4579, allocations: 33.77 kB / 494.5 MB, free: 6.254 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.458, allocations: 104.6 kB / 494.6 MB, free: 6.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.4582, allocations: 123 kB / 494.7 MB, free: 6.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002118/0.4584, allocations: 73.45 kB / 494.8 MB, free: 5.949 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002321/0.4586, allocations: 326.8 kB / 495.1 MB, free: 5.621 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007566/0.4594, allocations: 135.9 kB / 495.3 MB, free: 5.488 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000876/0.4602, allocations: 202.8 kB / 495.5 MB, free: 5.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/0.4619, allocations: 346.6 kB / 495.8 MB, free: 4.902 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.4619, allocations: 0 / 495.8 MB, free: 4.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002133/0.464, allocations: 430 kB / 496.2 MB, free: 4.473 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.464, allocations: 4 kB / 496.2 MB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.199e-05/0.4641, allocations: 4 kB / 496.2 MB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003808/0.4644, allocations: 32.84 kB / 496.3 MB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008338/0.4653, allocations: 92.41 kB / 496.3 MB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006876/0.466, allocations: 0.5523 MB / 496.9 MB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005024/0.4665, allocations: 23.98 kB / 496.9 MB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.055e-05/0.4665, allocations: 11.98 kB / 496.9 MB, free: 3.727 MB / 398.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.0002797/0.4668, allocations: 153.7 kB / 497.1 MB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/0.467, allocations: 19.89 kB / 497.1 MB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004321/0.4713, allocations: 1.497 MB / 498.6 MB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.587e-05/0.4714, allocations: 27.98 kB / 498.6 MB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.4714, allocations: 0 / 498.6 MB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.4714, allocations: 4 kB / 498.6 MB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006001/0.4774, allocations: 2.017 MB / 0.4889 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.4774, allocations: 0 / 0.4889 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008872/0.4783, allocations: 87.98 kB / 0.489 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006167/0.4789, allocations: 72.75 kB / 0.4891 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.198e-05/0.479, allocations: 15.98 kB / 0.4891 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007409/0.4797, allocations: 0.5953 MB / 0.4897 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.079e-05/0.4797, allocations: 7.969 kB / 0.4897 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004443/0.4842, allocations: 1.729 MB / 0.4914 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.4843, allocations: 55.52 kB / 0.4914 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.975e-05/0.4844, allocations: 8 kB / 0.4914 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006953/0.4851, allocations: 23.97 kB / 0.4914 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.4852, allocations: 35.88 kB / 0.4915 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.669e-05/0.4852, allocations: 19.98 kB / 0.4915 GB, free: 13.22 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001153/0.4854, allocations: 91.27 kB / 0.4916 GB, free: 13.13 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4854, allocations: 4 kB / 0.4916 GB, free: 13.13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004221/0.4896, allocations: 0.9631 MB / 0.4925 GB, free: 12.16 MB / 414.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.01077/0.5004, allocations: 3.33 MB / 0.4958 GB, free: 8.789 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002006/0.5024, allocations: 0.6127 MB / 0.4964 GB, free: 8.176 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5024, allocations: 0 / 0.4964 GB, free: 8.176 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008872/0.5033, allocations: 460.7 kB / 0.4968 GB, free: 7.727 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00082/0.5041, allocations: 84.56 kB / 0.4969 GB, free: 7.645 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008224/0.5123, allocations: 3.932 MB / 0.5007 GB, free: 3.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005519/0.5128, allocations: 0.8177 MB / 0.5015 GB, free: 2.707 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004218/0.5133, allocations: 141.8 kB / 0.5017 GB, free: 2.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002539/0.5135, allocations: 127.4 kB / 0.5018 GB, free: 2.445 MB / 414.1 MB Notification: Performance of SimCode: time 1.663e-06/0.5135, allocations: 0 / 0.5018 GB, free: 2.445 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2678/0.7813, allocations: 41.3 MB / 0.5421 GB, free: 114.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.02/15.8, allocations: 13.69 kB / 0.5421 GB, free: 114.4 MB / 446.1 MB " [Timeout remaining time 644] (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.00019992 Modelica_4_0_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.55109082600029]