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.001247/0.001247, allocations: 109.5 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.001347/0.001347, allocations: 184.6 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.335/1.335, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 179] 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.001583/0.001583, allocations: 39.94 kB / 370.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2392, allocations: 52.18 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01605/0.2552, allocations: 13.02 MB / 435.6 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01344/0.2686, allocations: 11.62 MB / 447.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.2688, allocations: 0 / 447.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002971/0.2691, allocations: 75.55 kB / 447.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002585/0.2693, allocations: 79.42 kB / 447.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01204/0.2814, allocations: 5.092 MB / 452.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000371/0.2817, allocations: 238.9 kB / 452.7 MB, free: 384 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.18e-05/0.2818, allocations: 9.641 kB / 452.7 MB, free: 368 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004081/0.2822, allocations: 199.3 kB / 452.9 MB, free: 168 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001262/0.2823, allocations: 75.69 kB / 453 MB, free: 92 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.2823, allocations: 12 kB / 453 MB, free: 80 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01226/0.2946, allocations: 6.997 MB / 460 MB, free: 9.074 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.739e-05/0.2947, allocations: 23.91 kB / 460 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.2948, allocations: 79.66 kB / 460.1 MB, free: 8.973 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007334/0.3021, allocations: 3.878 MB / 464 MB, free: 5.086 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3021, allocations: 0 / 464 MB, free: 5.086 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3021, allocations: 0 / 464 MB, free: 5.086 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.3021, allocations: 0 / 464 MB, free: 5.086 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.004795/0.3069, allocations: 1.088 MB / 465.1 MB, free: 3.965 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.307, allocations: 12.03 kB / 465.1 MB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.889e-05/0.307, allocations: 46.73 kB / 465.1 MB, free: 3.898 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004615/0.3075, allocations: 52.8 kB / 465.2 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/0.3078, allocations: 166.3 kB / 465.3 MB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.3078, allocations: 8.656 kB / 465.4 MB, free: 3.652 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.083e-05/0.3078, allocations: 24.08 kB / 465.4 MB, free: 3.629 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.3091, allocations: 388.8 kB / 465.8 MB, free: 3.219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.3091, allocations: 0 / 465.8 MB, free: 3.219 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.256e-05/0.3092, allocations: 8 kB / 465.8 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.3092, allocations: 4 kB / 465.8 MB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.3105, allocations: 359.5 kB / 466.1 MB, free: 2.855 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.001428/0.312, allocations: 1.159 MB / 467.3 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008517/0.3128, allocations: 281.4 kB / 467.6 MB, free: 1.301 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002684/0.3131, allocations: 106.9 kB / 467.7 MB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08586/0.399, allocations: 25.05 MB / 492.7 MB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/0.399, allocations: 42.5 kB / 492.8 MB, free: 8.051 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.934e-06/0.399, allocations: 0 / 492.8 MB, free: 8.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00669/0.4057, allocations: 1.497 MB / 494.3 MB, free: 6.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.4058, allocations: 110.8 kB / 494.4 MB, free: 6.387 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.4059, allocations: 117.8 kB / 494.5 MB, free: 6.262 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.4059, allocations: 37.7 kB / 494.5 MB, free: 6.219 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.253e-05/0.406, allocations: 104.7 kB / 494.6 MB, free: 6.113 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.4061, allocations: 122.9 kB / 494.7 MB, free: 5.992 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.4062, allocations: 69.47 kB / 494.8 MB, free: 5.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.4063, allocations: 334.8 kB / 495.1 MB, free: 5.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003773/0.4067, allocations: 127.9 kB / 495.3 MB, free: 5.457 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004226/0.4071, allocations: 198.7 kB / 495.5 MB, free: 5.238 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007868/0.4079, allocations: 346.6 kB / 495.8 MB, free: 4.875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4079, allocations: 0 / 495.8 MB, free: 4.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001121/0.409, allocations: 430 kB / 496.2 MB, free: 4.445 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.4091, allocations: 4 kB / 496.2 MB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.4091, allocations: 4 kB / 496.2 MB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002582/0.4093, allocations: 28.84 kB / 496.2 MB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004683/0.4098, allocations: 91.97 kB / 496.3 MB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000414/0.4102, allocations: 0.5562 MB / 496.9 MB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.4105, allocations: 20.02 kB / 496.9 MB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/0.4105, allocations: 19.98 kB / 496.9 MB, free: 3.695 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.000157/0.4107, allocations: 145.8 kB / 497.1 MB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.699e-05/0.4108, allocations: 16.28 kB / 497.1 MB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002228/0.413, allocations: 1.506 MB / 498.6 MB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.814e-05/0.413, allocations: 23.97 kB / 498.6 MB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.413, allocations: 3.984 kB / 498.6 MB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4131, allocations: 4.031 kB / 498.6 MB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003012/0.4161, allocations: 2.014 MB / 0.4889 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.4161, allocations: 4 kB / 0.4889 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004543/0.4165, allocations: 79.86 kB / 0.489 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003147/0.4168, allocations: 76.88 kB / 0.4891 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/0.4169, allocations: 15.98 kB / 0.4891 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003959/0.4173, allocations: 0.5914 MB / 0.4897 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.4173, allocations: 0 / 0.4897 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002267/0.4195, allocations: 1.741 MB / 0.4914 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.991e-05/0.4196, allocations: 51.52 kB / 0.4914 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.741e-05/0.4196, allocations: 12 kB / 0.4914 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000372/0.42, allocations: 27.92 kB / 0.4914 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.083e-05/0.4201, allocations: 27.94 kB / 0.4915 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.4201, allocations: 19.98 kB / 0.4915 GB, free: 13.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.143e-05/0.4202, allocations: 91.27 kB / 0.4916 GB, free: 13.11 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4202, allocations: 0 / 0.4916 GB, free: 13.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002471/0.4227, allocations: 0.9592 MB / 0.4925 GB, free: 12.15 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.006842/0.4295, allocations: 3.342 MB / 0.4958 GB, free: 8.766 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.4309, allocations: 0.6084 MB / 0.4964 GB, free: 8.156 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.4309, allocations: 448 / 0.4964 GB, free: 8.156 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007688/0.4316, allocations: 468.7 kB / 0.4968 GB, free: 7.699 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007604/0.4324, allocations: 80.52 kB / 0.4969 GB, free: 7.621 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007205/0.4396, allocations: 3.944 MB / 0.5007 GB, free: 3.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/0.4401, allocations: 0.8177 MB / 0.5015 GB, free: 2.672 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003432/0.4404, allocations: 129.8 kB / 0.5017 GB, free: 2.547 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002189/0.4406, allocations: 131.3 kB / 0.5018 GB, free: 2.418 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4406, allocations: 0 / 0.5018 GB, free: 2.418 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2491/0.6897, allocations: 41.3 MB / 0.5421 GB, free: 114.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.49/15.18, allocations: 3.969 kB / 0.5421 GB, free: 114.5 MB / 446.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/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: 17.902254943968728]