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.0008627/0.0008627, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009203/0.0009203, allocations: 153 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8715/0.8715, allocations: 173.4 MB / 200.4 MB, free: 9.441 MB / 186.7 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 1.613e-06/1.613e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.964e-05/2.125e-05, allocations: 2.281 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01067/0.0107, allocations: 11.79 MB / 330.2 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008908/0.0196, allocations: 10.14 MB / 340.3 MB, free: 360 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.01974, allocations: 3.938 kB / 340.3 MB, free: 356 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003163/0.02006, allocations: 63.59 kB / 340.4 MB, free: 292 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002872/0.02034, allocations: 83.31 kB / 340.5 MB, free: 208 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009708/0.03005, allocations: 5.099 MB / 345.6 MB, free: 11.11 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003196/0.03037, allocations: 242.7 kB / 345.8 MB, free: 10.88 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.354e-05/0.03042, allocations: 13.62 kB / 345.8 MB, free: 10.86 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003883/0.03081, allocations: 215.3 kB / 346 MB, free: 10.64 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.66e-05/0.03091, allocations: 55.89 kB / 346.1 MB, free: 10.59 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.03093, allocations: 8 kB / 346.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008737/0.03967, allocations: 6.68 MB / 352.8 MB, free: 3.895 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.883e-05/0.03976, allocations: 31.84 kB / 352.8 MB, free: 3.863 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 9.728e-05/0.03985, allocations: 51.91 kB / 352.9 MB, free: 3.812 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007879/0.04773, allocations: 4.97 MB / 357.8 MB, free: 14.83 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.04774, allocations: 3.938 kB / 357.8 MB, free: 14.83 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.04774, allocations: 0 / 357.8 MB, free: 14.83 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.04774, allocations: 4 kB / 357.8 MB, free: 14.82 MB / 330.7 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.00281/0.05055, allocations: 1.091 MB / 358.9 MB, free: 13.7 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.0506, allocations: 8.922 kB / 358.9 MB, free: 13.69 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.973e-05/0.05065, allocations: 42.75 kB / 359 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002847/0.05094, allocations: 56.8 kB / 359 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.0512, allocations: 165.5 kB / 359.2 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.05122, allocations: 8.656 kB / 359.2 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.668e-05/0.05126, allocations: 20.36 kB / 359.2 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007291/0.05199, allocations: 440.8 kB / 359.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.052, allocations: 3.938 kB / 359.7 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.05203, allocations: 8 kB / 359.7 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.05204, allocations: 4 kB / 359.7 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007373/0.05277, allocations: 351.5 kB / 360 MB, free: 12.54 MB / 330.7 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.0009248/0.0537, allocations: 1.032 MB / 361.1 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004701/0.05417, allocations: 271 kB / 361.3 MB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.05432, allocations: 110.5 kB / 361.4 MB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04499/0.09932, allocations: 25.16 MB / 386.6 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.09935, allocations: 34.56 kB / 386.6 MB, free: 1.797 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.944e-06/0.09935, allocations: 0 / 386.6 MB, free: 1.797 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.003727/0.1031, allocations: 1.515 MB / 388.1 MB, free: 252 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.1031, allocations: 106.8 kB / 388.2 MB, free: 120 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.585e-05/0.1032, allocations: 125.7 kB / 388.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.1032, allocations: 33.7 kB / 388.4 MB, free: 15.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.241e-05/0.1033, allocations: 100.6 kB / 388.5 MB, free: 15.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.771e-05/0.1034, allocations: 126.9 kB / 388.6 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.934e-05/0.1034, allocations: 69.69 kB / 388.7 MB, free: 15.64 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.847e-05/0.1035, allocations: 326.9 kB / 389 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/0.1037, allocations: 135.9 kB / 389.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.104, allocations: 198.5 kB / 389.3 MB, free: 14.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004626/0.1044, allocations: 350.6 kB / 389.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1044, allocations: 0 / 389.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006172/0.1051, allocations: 430 kB / 390.1 MB, free: 14.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1051, allocations: 4 kB / 390.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.1051, allocations: 7.938 kB / 390.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001765/0.1053, allocations: 36.83 kB / 390.1 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002422/0.1055, allocations: 87.88 kB / 390.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003116/0.1058, allocations: 0.5408 MB / 390.8 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.106, allocations: 32 kB / 390.8 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.106, allocations: 16 kB / 390.8 MB, free: 13.42 MB / 362.7 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.0003899/0.1064, allocations: 137.8 kB / 391 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.004e-05/0.1064, allocations: 15.91 kB / 391 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/0.1077, allocations: 1.491 MB / 392.5 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.1077, allocations: 19.97 kB / 392.5 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1077, allocations: 3.938 kB / 392.5 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.1078, allocations: 7.984 kB / 392.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/0.1096, allocations: 1.987 MB / 394.5 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.1096, allocations: 4 kB / 394.5 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002162/0.1098, allocations: 83.86 kB / 394.6 MB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001833/0.11, allocations: 76.88 kB / 394.6 MB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.11, allocations: 11.98 kB / 394.7 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002512/0.1103, allocations: 0.5953 MB / 395.2 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1103, allocations: 4.031 kB / 395.2 MB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.1116, allocations: 1.741 MB / 397 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.941e-05/0.1116, allocations: 51.53 kB / 397 MB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.968e-05/0.1117, allocations: 8 kB / 397 MB, free: 7.043 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001805/0.1118, allocations: 28.02 kB / 397.1 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/0.1119, allocations: 31.89 kB / 397.1 MB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/0.1119, allocations: 19.98 kB / 397.1 MB, free: 6.965 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.857e-05/0.112, allocations: 91.27 kB / 397.2 MB, free: 6.875 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.112, allocations: 3.938 kB / 397.2 MB, free: 6.871 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00221/0.1142, allocations: 0.9708 MB / 398.2 MB, free: 5.898 MB / 362.7 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.004808/0.119, allocations: 3.452 MB / 401.6 MB, free: 2.402 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008696/0.1198, allocations: 0.6117 MB / 402.3 MB, free: 1.789 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.1198, allocations: 0 / 402.3 MB, free: 1.789 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004567/0.1203, allocations: 477.9 kB / 402.7 MB, free: 1.324 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005042/0.1208, allocations: 72.14 kB / 402.8 MB, free: 1.254 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004713/0.1255, allocations: 3.843 MB / 406.6 MB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.1256, allocations: 208.3 kB / 406.8 MB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002511/0.1259, allocations: 133.8 kB / 407 MB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.1261, allocations: 132.4 kB / 407.1 MB, free: 12.76 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.1261, allocations: 0 / 407.1 MB, free: 12.76 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05363/0.1797, allocations: 41.5 MB / 448.6 MB, free: 3.414 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.449/9.628, allocations: 10.14 kB / 448.6 MB, free: 3.41 MB / 410.7 MB " [Timeout remaining time 650] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/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: 11.726472158916295]