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.001336/0.001336, allocations: 115.8 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.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.001486/0.001486, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.371/1.371, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.001619/0.001619, allocations: 47.92 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2355, allocations: 53.36 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01664/0.2521, allocations: 13.13 MB / 444.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01404/0.2662, allocations: 11.62 MB / 455.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.2663, allocations: 7.938 kB / 455.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003283/0.2666, allocations: 67.61 kB / 455.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002936/0.2669, allocations: 87.38 kB / 456 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01249/0.2794, allocations: 5.095 MB / 461.1 MB, free: 8.773 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000403/0.2798, allocations: 238.9 kB / 461.3 MB, free: 8.539 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.19e-05/0.2799, allocations: 5.641 kB / 461.4 MB, free: 8.527 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004423/0.2803, allocations: 203.3 kB / 461.6 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.2804, allocations: 75.75 kB / 461.6 MB, free: 8.254 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.2804, allocations: 8 kB / 461.6 MB, free: 8.246 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0127/0.2931, allocations: 7.013 MB / 468.6 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.065e-05/0.2932, allocations: 31.92 kB / 468.7 MB, free: 1.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.2933, allocations: 67.72 kB / 468.7 MB, free: 1.129 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007679/0.301, allocations: 3.89 MB / 472.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.301, allocations: 4 kB / 472.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.301, allocations: 0 / 472.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.301, allocations: 0 / 472.6 MB, free: 13.23 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.004552/0.3056, allocations: 1.091 MB / 473.7 MB, free: 12.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.3056, allocations: 12.03 kB / 473.7 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.544e-05/0.3057, allocations: 46.73 kB / 473.8 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004433/0.3061, allocations: 52.78 kB / 473.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.3064, allocations: 166.3 kB / 474 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.3064, allocations: 8.656 kB / 474 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.731e-05/0.3065, allocations: 24.12 kB / 474 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.3077, allocations: 384.8 kB / 474.4 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.3078, allocations: 0 / 474.4 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.161e-05/0.3078, allocations: 8 kB / 474.4 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.3078, allocations: 4 kB / 474.4 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.3092, allocations: 359.5 kB / 474.8 MB, free: 11 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.001478/0.3107, allocations: 1.159 MB / 475.9 MB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008668/0.3115, allocations: 279.7 kB / 476.2 MB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002782/0.3118, allocations: 106.9 kB / 476.3 MB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08679/0.3986, allocations: 26.01 MB / 0.4905 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.473e-05/0.3987, allocations: 38.56 kB / 0.4906 GB, free: 15.24 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.724e-06/0.3987, allocations: 0 / 0.4906 GB, free: 15.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.006751/0.4054, allocations: 1.508 MB / 0.4921 GB, free: 13.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.476e-05/0.4055, allocations: 106.8 kB / 0.4922 GB, free: 13.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.4056, allocations: 117.8 kB / 0.4923 GB, free: 13.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.4056, allocations: 33.7 kB / 0.4923 GB, free: 13.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.303e-05/0.4057, allocations: 108.5 kB / 0.4924 GB, free: 13.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.4058, allocations: 126.9 kB / 0.4925 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.4059, allocations: 69.69 kB / 0.4926 GB, free: 13.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.4061, allocations: 326.8 kB / 0.4929 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.4065, allocations: 139.7 kB / 0.493 GB, free: 12.63 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004255/0.4069, allocations: 198.8 kB / 0.4932 GB, free: 12.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008221/0.4077, allocations: 342.6 kB / 0.4936 GB, free: 12.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4077, allocations: 4 kB / 0.4936 GB, free: 12.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001071/0.4088, allocations: 426 kB / 0.494 GB, free: 11.62 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.4088, allocations: 4 kB / 0.494 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.4088, allocations: 4.219 kB / 0.494 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002347/0.409, allocations: 36.83 kB / 0.494 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004564/0.4095, allocations: 87.88 kB / 0.4941 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004163/0.4099, allocations: 0.5484 MB / 0.4946 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.4102, allocations: 28.09 kB / 0.4947 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.19e-05/0.4102, allocations: 16 kB / 0.4947 GB, free: 10.87 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.000147/0.4104, allocations: 130.3 kB / 0.4948 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.843e-05/0.4105, allocations: 15.91 kB / 0.4948 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002272/0.4128, allocations: 1.51 MB / 0.4963 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.436e-05/0.4128, allocations: 23.97 kB / 0.4963 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.4128, allocations: 0 / 0.4963 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.986e-06/0.4128, allocations: 7.922 kB / 0.4963 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.4159, allocations: 2.005 MB / 0.4983 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.4159, allocations: 4 kB / 0.4983 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004332/0.4164, allocations: 79.86 kB / 0.4983 GB, free: 7.016 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003112/0.4167, allocations: 68.8 kB / 0.4984 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/0.4167, allocations: 20.08 kB / 0.4984 GB, free: 6.926 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004231/0.4171, allocations: 0.5991 MB / 0.499 GB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4171, allocations: 0 / 0.499 GB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002358/0.4195, allocations: 1.741 MB / 0.5007 GB, free: 4.531 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.998e-05/0.4195, allocations: 51.53 kB / 0.5008 GB, free: 4.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.64e-05/0.4196, allocations: 12 kB / 0.5008 GB, free: 4.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003669/0.42, allocations: 23.95 kB / 0.5008 GB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.062e-05/0.42, allocations: 35.94 kB / 0.5008 GB, free: 4.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-05/0.4201, allocations: 12 kB / 0.5008 GB, free: 4.398 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.232e-05/0.4201, allocations: 91.27 kB / 0.5009 GB, free: 4.309 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4201, allocations: 0 / 0.5009 GB, free: 4.309 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002541/0.4227, allocations: 0.9747 MB / 0.5019 GB, free: 3.332 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.006699/0.4294, allocations: 3.339 MB / 0.5051 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.4307, allocations: 0.6008 MB / 0.5057 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.4308, allocations: 0 / 0.5057 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008066/0.4316, allocations: 469.1 kB / 0.5062 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007415/0.4323, allocations: 78.64 kB / 0.5063 GB, free: 14.81 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00699/0.4393, allocations: 3.966 MB / 0.5101 GB, free: 10.69 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004675/0.4398, allocations: 0.8216 MB / 0.5109 GB, free: 9.84 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000348/0.4401, allocations: 137.8 kB / 0.5111 GB, free: 9.707 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/0.4403, allocations: 123.4 kB / 0.5112 GB, free: 9.586 MB / 430.1 MB Notification: Performance of SimCode: time 5.72e-07/0.4403, allocations: 0 / 0.5112 GB, free: 9.586 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.261/0.7013, allocations: 41.39 MB / 0.5516 GB, free: 83.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.12/15.82, allocations: 20.94 kB / 0.5516 GB, free: 83.72 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 & /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.5972559498623]