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.001297/0.001297, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001366/0.001366, allocations: 206.1 kB / 24.52 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.366/1.366, allocations: 230.6 MB / 258.3 MB, free: 8.023 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 51.92 kB / 378.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2278, allocations: 53.36 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01599/0.2438, allocations: 13.14 MB / 445 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01385/0.2577, allocations: 11.61 MB / 456.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.2578, allocations: 4 kB / 456.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003799/0.2582, allocations: 71.55 kB / 456.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003526/0.2586, allocations: 91.36 kB / 456.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01257/0.2711, allocations: 5.097 MB / 461.9 MB, free: 8.789 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003803/0.2715, allocations: 238.9 kB / 462.1 MB, free: 8.555 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.651e-05/0.2716, allocations: 5.641 kB / 462.1 MB, free: 8.543 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004407/0.272, allocations: 203.3 kB / 462.3 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.2721, allocations: 71.75 kB / 462.4 MB, free: 8.273 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.949e-05/0.2722, allocations: 8 kB / 462.4 MB, free: 8.266 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01204/0.2842, allocations: 7.016 MB / 469.4 MB, free: 1.242 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.535e-05/0.2843, allocations: 23.91 kB / 469.5 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.2844, allocations: 71.67 kB / 469.5 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00798/0.2924, allocations: 3.894 MB / 473.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2924, allocations: 0 / 473.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2924, allocations: 0 / 473.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.2924, allocations: 0 / 473.4 MB, free: 13.25 MB / 382.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.004823/0.2972, allocations: 1.095 MB / 474.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.2973, allocations: 12.03 kB / 474.5 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.808e-05/0.2973, allocations: 8.406 kB / 474.5 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.874e-05/0.2974, allocations: 46.73 kB / 474.6 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000484/0.2978, allocations: 48.84 kB / 474.6 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.2981, allocations: 166.3 kB / 474.8 MB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.2982, allocations: 12.31 kB / 474.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.597e-05/0.2982, allocations: 19.94 kB / 474.8 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.2995, allocations: 384.9 kB / 475.2 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.2996, allocations: 0 / 475.2 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.667e-05/0.2996, allocations: 8 kB / 475.2 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.2996, allocations: 4 kB / 475.2 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001494/0.3011, allocations: 355.5 kB / 475.6 MB, free: 11.01 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.001537/0.3026, allocations: 1.156 MB / 476.7 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008716/0.3035, allocations: 279.7 kB / 477 MB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002934/0.3038, allocations: 114.8 kB / 477.1 MB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09138/0.3952, allocations: 26 MB / 0.4913 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.532e-05/0.3952, allocations: 42.55 kB / 0.4914 GB, free: 15.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.184e-06/0.3952, allocations: 0 / 0.4914 GB, free: 15.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.006964/0.4022, allocations: 1.504 MB / 0.4928 GB, free: 13.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.997e-05/0.4023, allocations: 114.8 kB / 0.4929 GB, free: 13.58 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.4024, allocations: 121.8 kB / 0.493 GB, free: 13.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.307e-05/0.4024, allocations: 33.7 kB / 0.4931 GB, free: 13.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.021e-05/0.4025, allocations: 104.5 kB / 0.4932 GB, free: 13.31 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.4026, allocations: 123 kB / 0.4933 GB, free: 13.19 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.4027, allocations: 69.69 kB / 0.4934 GB, free: 13.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4029, allocations: 330.8 kB / 0.4937 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004025/0.4033, allocations: 135.7 kB / 0.4938 GB, free: 12.65 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004488/0.4037, allocations: 198.8 kB / 0.494 GB, free: 12.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008534/0.4046, allocations: 346.6 kB / 0.4943 GB, free: 12.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4046, allocations: 0 / 0.4943 GB, free: 12.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001136/0.4057, allocations: 426 kB / 0.4947 GB, free: 11.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.4057, allocations: 4 kB / 0.4947 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.4058, allocations: 8.203 kB / 0.4947 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002571/0.406, allocations: 32.84 kB / 0.4948 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004629/0.4065, allocations: 87.88 kB / 0.4949 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004361/0.4069, allocations: 0.5523 MB / 0.4954 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002889/0.4072, allocations: 24.11 kB / 0.4954 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.475e-05/0.4072, allocations: 23.97 kB / 0.4954 GB, free: 10.88 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.0001766/0.4074, allocations: 130.3 kB / 0.4956 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.4075, allocations: 15.91 kB / 0.4956 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002346/0.4099, allocations: 1.505 MB / 0.4971 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.149e-05/0.4099, allocations: 24.34 kB / 0.4971 GB, free: 9.195 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.4099, allocations: 0 / 0.4971 GB, free: 9.195 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.4099, allocations: 3.984 kB / 0.4971 GB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00322/0.4132, allocations: 2.009 MB / 0.499 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/0.4132, allocations: 11.97 kB / 0.4991 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004646/0.4136, allocations: 79.86 kB / 0.4991 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003721/0.414, allocations: 72.73 kB / 0.4992 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.255e-05/0.4141, allocations: 15.98 kB / 0.4992 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004838/0.4145, allocations: 0.5953 MB / 0.4998 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.4145, allocations: 0 / 0.4998 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.4172, allocations: 1.737 MB / 0.5015 GB, free: 4.547 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.4173, allocations: 55.56 kB / 0.5015 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.561e-05/0.4173, allocations: 11.94 kB / 0.5016 GB, free: 4.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003755/0.4177, allocations: 19.98 kB / 0.5016 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.738e-05/0.4178, allocations: 35.88 kB / 0.5016 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.4179, allocations: 19.98 kB / 0.5016 GB, free: 4.406 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.631e-05/0.4179, allocations: 91.27 kB / 0.5017 GB, free: 4.316 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4179, allocations: 0 / 0.5017 GB, free: 4.316 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00296/0.4209, allocations: 0.9708 MB / 0.5027 GB, free: 3.344 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.007188/0.4281, allocations: 3.343 MB / 0.5059 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.4295, allocations: 0.5968 MB / 0.5065 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.4295, allocations: 3.938 kB / 0.5065 GB, free: 15.35 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008169/0.4303, allocations: 465.2 kB / 0.507 GB, free: 14.9 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007764/0.4311, allocations: 87.08 kB / 0.507 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00752/0.4386, allocations: 3.955 MB / 0.5109 GB, free: 10.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004527/0.4391, allocations: 0.8216 MB / 0.5117 GB, free: 9.852 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003526/0.4394, allocations: 129.8 kB / 0.5118 GB, free: 9.727 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/0.4397, allocations: 135.4 kB / 0.512 GB, free: 9.594 MB / 430.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4397, allocations: 0 / 0.512 GB, free: 9.594 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2544/0.694, allocations: 41.42 MB / 0.5524 GB, free: 84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/15.27, allocations: 10.12 kB / 0.5524 GB, free: 84 MB / 446.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/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.200692154990975]