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.001495/0.001495, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001519/0.001519, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.339/1.339, allocations: 225.6 MB / 249.1 MB, free: 3.637 MB / 190.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.001422/0.001422, allocations: 43.92 kB / 365.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08607/0.0875, allocations: 52.14 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01606/0.1036, allocations: 12.96 MB / 430.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01377/0.1173, allocations: 11.59 MB / 442.3 MB, free: 4.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.1174, allocations: 0 / 442.3 MB, free: 4.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003096/0.1177, allocations: 75.55 kB / 442.4 MB, free: 3.934 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003005/0.118, allocations: 79.42 kB / 442.5 MB, free: 3.855 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1851/0.3031, allocations: 5.064 MB / 447.5 MB, free: 9.105 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003341/0.3034, allocations: 236.5 kB / 447.7 MB, free: 9.105 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.471e-05/0.3035, allocations: 11.61 kB / 447.8 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000411/0.3039, allocations: 192.7 kB / 447.9 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.304, allocations: 75.69 kB / 448 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.304, allocations: 7.844 kB / 448 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01175/0.3158, allocations: 6.992 MB / 455 MB, free: 9.098 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.151e-05/0.3159, allocations: 33.55 kB / 455.1 MB, free: 9.098 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.316, allocations: 69.2 kB / 455.1 MB, free: 9.098 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009711/0.3257, allocations: 3.873 MB / 459 MB, free: 8.992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3257, allocations: 0 / 459 MB, free: 8.992 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3257, allocations: 0 / 459 MB, free: 8.992 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.3257, allocations: 0 / 459 MB, free: 8.992 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.005571/0.3313, allocations: 1.166 MB / 460.2 MB, free: 8.379 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3313, allocations: 10.47 kB / 460.2 MB, free: 8.379 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.801e-05/0.3314, allocations: 49.86 kB / 460.2 MB, free: 8.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004726/0.3319, allocations: 52.31 kB / 460.3 MB, free: 8.332 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.3322, allocations: 217.7 kB / 460.5 MB, free: 8.133 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.3322, allocations: 15.25 kB / 460.5 MB, free: 8.133 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.981e-05/0.3322, allocations: 18.33 kB / 460.5 MB, free: 8.129 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.3334, allocations: 397.9 kB / 460.9 MB, free: 8.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.3334, allocations: 1.281 kB / 460.9 MB, free: 8.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.3334, allocations: 8.562 kB / 460.9 MB, free: 8.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.3334, allocations: 6.609 kB / 460.9 MB, free: 8.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.3347, allocations: 357.7 kB / 461.3 MB, free: 8.012 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.00109/0.3358, allocations: 1.189 MB / 462.5 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007487/0.3366, allocations: 272.7 kB / 462.7 MB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002382/0.3368, allocations: 111.5 kB / 462.8 MB, free: 6.918 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09452/0.4313, allocations: 47.66 MB / 0.4985 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.4314, allocations: 34.56 kB / 0.4986 GB, free: 12.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.4314, allocations: 0 / 0.4986 GB, free: 12.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.006726/0.4381, allocations: 1.584 MB / 0.5001 GB, free: 11.6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.4382, allocations: 106.8 kB / 0.5002 GB, free: 11.47 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.4383, allocations: 120 kB / 0.5003 GB, free: 11.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.4383, allocations: 33.14 kB / 0.5004 GB, free: 11.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.4384, allocations: 110.4 kB / 0.5005 GB, free: 11.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.4385, allocations: 127.4 kB / 0.5006 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.4386, allocations: 69.47 kB / 0.5007 GB, free: 11.03 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.4388, allocations: 326.8 kB / 0.501 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000374/0.4392, allocations: 131.9 kB / 0.5011 GB, free: 10.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000424/0.4396, allocations: 205.8 kB / 0.5013 GB, free: 10.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00078/0.4404, allocations: 341.8 kB / 0.5016 GB, free: 9.996 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4404, allocations: 0 / 0.5016 GB, free: 9.996 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001053/0.4414, allocations: 433 kB / 0.502 GB, free: 9.574 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.4414, allocations: 8.625 kB / 0.502 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.4414, allocations: 2.078 kB / 0.502 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002342/0.4417, allocations: 36.83 kB / 0.5021 GB, free: 9.527 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004581/0.4421, allocations: 91.38 kB / 0.5022 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004184/0.4426, allocations: 0.5516 MB / 0.5027 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/0.4429, allocations: 24.72 kB / 0.5027 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.658e-05/0.4429, allocations: 12 kB / 0.5027 GB, free: 8.832 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.0001553/0.443, allocations: 140.5 kB / 0.5029 GB, free: 8.691 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.4432, allocations: 16.47 kB / 0.5029 GB, free: 8.676 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00223/0.4454, allocations: 1.449 MB / 0.5043 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.797e-05/0.4454, allocations: 23.97 kB / 0.5043 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4454, allocations: 4.031 kB / 0.5043 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.4454, allocations: 1.547 kB / 0.5043 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003072/0.4485, allocations: 1.99 MB / 0.5063 GB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.4485, allocations: 0 / 0.5063 GB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004345/0.4489, allocations: 80.77 kB / 0.5063 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003155/0.4492, allocations: 76.73 kB / 0.5064 GB, free: 5.012 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.062e-05/0.4493, allocations: 15.31 kB / 0.5064 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004266/0.4497, allocations: 0.5868 MB / 0.507 GB, free: 4.391 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.4497, allocations: 9.359 kB / 0.507 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002318/0.452, allocations: 1.69 MB / 0.5087 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.951e-05/0.4521, allocations: 128.7 kB / 0.5088 GB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.829e-05/0.4522, allocations: 11.98 kB / 0.5088 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003537/0.4525, allocations: 27.92 kB / 0.5088 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.081e-05/0.4526, allocations: 34.58 kB / 0.5089 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.35e-05/0.4526, allocations: 11.98 kB / 0.5089 GB, free: 2.441 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.147e-05/0.4527, allocations: 91.12 kB / 0.509 GB, free: 2.355 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4527, allocations: 0 / 0.509 GB, free: 2.355 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003837/0.4565, allocations: 0.9763 MB / 0.5099 GB, free: 1.379 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.007863/0.4644, allocations: 3.277 MB / 0.5131 GB, free: 14.18 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.4658, allocations: 0.5898 MB / 0.5137 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.4658, allocations: 4.125 kB / 0.5137 GB, free: 13.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007713/0.4666, allocations: 453.2 kB / 0.5141 GB, free: 13.16 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000745/0.4673, allocations: 73.39 kB / 0.5142 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007802/0.4751, allocations: 3.921 MB / 0.518 GB, free: 9.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.4755, allocations: 0.8178 MB / 0.5188 GB, free: 8.223 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003737/0.4759, allocations: 134.1 kB / 0.519 GB, free: 8.098 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002203/0.4761, allocations: 131.4 kB / 0.5191 GB, free: 7.969 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4761, allocations: 0 / 0.5191 GB, free: 7.969 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08161/0.5577, allocations: 40.59 MB / 0.5587 GB, free: 15.51 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.69/14.24, allocations: 13.69 kB / 0.5587 GB, free: 15.5 MB / 478.1 MB " [Timeout remaining time 646] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 16.958313507027924]