Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.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.002248/0.002248, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002349/0.002349, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.487/1.487, allocations: 230.6 MB / 257.5 MB, free: 7.82 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.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 51.92 kB / 377.7 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2346, allocations: 53.37 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01656/0.2511, allocations: 11.92 MB / 443 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01343/0.2645, allocations: 10.13 MB / 453.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.2647, allocations: 0 / 453.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003284/0.265, allocations: 63.58 kB / 453.2 MB, free: 484 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002969/0.2653, allocations: 87.44 kB / 453.3 MB, free: 396 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01359/0.2789, allocations: 5.043 MB / 458.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003833/0.2793, allocations: 234.9 kB / 458.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.718e-05/0.2793, allocations: 9.641 kB / 458.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004651/0.2798, allocations: 187.3 kB / 458.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.2799, allocations: 71.75 kB / 458.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.2799, allocations: 8 kB / 458.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01261/0.2925, allocations: 6.681 MB / 465.5 MB, free: 4.152 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.412e-05/0.2926, allocations: 31.91 kB / 465.5 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.2927, allocations: 67.72 kB / 465.6 MB, free: 4.055 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008243/0.301, allocations: 3.878 MB / 469.5 MB, free: 172 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.301, allocations: 0 / 469.5 MB, free: 172 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.301, allocations: 0 / 469.5 MB, free: 172 kB / 366.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.301, allocations: 4 kB / 469.5 MB, free: 168 kB / 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.004367/0.3054, allocations: 1.084 MB / 470.5 MB, free: 15.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3054, allocations: 12.03 kB / 470.6 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.245e-05/0.3055, allocations: 50.67 kB / 470.6 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004502/0.3059, allocations: 44.84 kB / 470.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/0.3062, allocations: 174.3 kB / 470.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.563e-05/0.3062, allocations: 8.656 kB / 470.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.022e-05/0.3063, allocations: 20.12 kB / 470.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.3076, allocations: 440.2 kB / 471.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.3076, allocations: 0 / 471.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.023e-05/0.3076, allocations: 7.938 kB / 471.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.3077, allocations: 4 kB / 471.3 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001418/0.3091, allocations: 351.6 kB / 471.6 MB, free: 13.88 MB / 382.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.001362/0.3104, allocations: 1.032 MB / 472.7 MB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008566/0.3113, allocations: 275.7 kB / 472.9 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002849/0.3116, allocations: 106.9 kB / 473 MB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09386/0.4054, allocations: 26.11 MB / 499.1 MB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.842e-05/0.4055, allocations: 42.5 kB / 499.2 MB, free: 2.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 3.867e-06/0.4055, allocations: 3.984 kB / 499.2 MB, free: 2.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.006859/0.4124, allocations: 1.503 MB / 0.489 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/0.4124, allocations: 114.8 kB / 0.4891 GB, free: 0.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.4125, allocations: 125.7 kB / 0.4892 GB, free: 376 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.845e-05/0.4126, allocations: 29.7 kB / 0.4892 GB, free: 340 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.598e-05/0.4127, allocations: 112.5 kB / 0.4893 GB, free: 224 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.4128, allocations: 126.9 kB / 0.4894 GB, free: 96 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.4129, allocations: 61.69 kB / 0.4895 GB, free: 28 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.4131, allocations: 330.8 kB / 0.4898 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004034/0.4135, allocations: 139.7 kB / 0.49 GB, free: 15.56 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004449/0.4139, allocations: 194.7 kB / 0.4901 GB, free: 15.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008649/0.4148, allocations: 346.6 kB / 0.4905 GB, free: 14.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4148, allocations: 4 kB / 0.4905 GB, free: 14.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001131/0.4159, allocations: 426.2 kB / 0.4909 GB, free: 14.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.4159, allocations: 8 kB / 0.4909 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.4159, allocations: 0 / 0.4909 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002434/0.4162, allocations: 40.78 kB / 0.4909 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004846/0.4167, allocations: 83.88 kB / 0.491 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004365/0.4171, allocations: 0.5524 MB / 0.4915 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.4174, allocations: 20.14 kB / 0.4916 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.4174, allocations: 19.98 kB / 0.4916 GB, free: 13.8 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.0001589/0.4176, allocations: 137.7 kB / 0.4917 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.633e-05/0.4177, allocations: 15.91 kB / 0.4917 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002315/0.42, allocations: 1.504 MB / 0.4932 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.844e-05/0.42, allocations: 23.95 kB / 0.4932 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.42, allocations: 4 kB / 0.4932 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.42, allocations: 0 / 0.4932 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003169/0.4232, allocations: 1.966 MB / 0.4951 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.4232, allocations: 3.938 kB / 0.4952 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004483/0.4236, allocations: 87.86 kB / 0.4952 GB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003115/0.424, allocations: 76.88 kB / 0.4953 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.03e-05/0.424, allocations: 15.98 kB / 0.4953 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004302/0.4244, allocations: 0.5914 MB / 0.4959 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4244, allocations: 0 / 0.4959 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002481/0.4269, allocations: 1.737 MB / 0.4976 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.927e-05/0.427, allocations: 63.5 kB / 0.4977 GB, free: 7.438 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.743e-05/0.427, allocations: 8.375 kB / 0.4977 GB, free: 7.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003822/0.4274, allocations: 23.92 kB / 0.4977 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.217e-05/0.4275, allocations: 31.94 kB / 0.4977 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.762e-05/0.4275, allocations: 19.98 kB / 0.4977 GB, free: 7.355 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.673e-05/0.4276, allocations: 91.22 kB / 0.4978 GB, free: 7.266 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4276, allocations: 0 / 0.4978 GB, free: 7.266 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002652/0.4302, allocations: 0.9709 MB / 0.4988 GB, free: 6.293 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.006887/0.4371, allocations: 3.343 MB / 0.502 GB, free: 2.906 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.4386, allocations: 0.6006 MB / 0.5026 GB, free: 2.305 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.4386, allocations: 0 / 0.5026 GB, free: 2.305 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008314/0.4394, allocations: 477.8 kB / 0.5031 GB, free: 1.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008006/0.4402, allocations: 76.12 kB / 0.5032 GB, free: 1.766 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007524/0.4478, allocations: 3.944 MB / 0.507 GB, free: 13.66 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.448, allocations: 212.3 kB / 0.5072 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004048/0.4484, allocations: 145.7 kB / 0.5073 GB, free: 13.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002483/0.4487, allocations: 131.4 kB / 0.5075 GB, free: 13.16 MB / 430.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4487, allocations: 0 / 0.5075 GB, free: 13.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2698/0.7185, allocations: 41.35 MB / 0.5479 GB, free: 86.06 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.97/15.69, allocations: 4.859 kB / 0.5479 GB, free: 86.06 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.547128612175584]