Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0015/0.0015, allocations: 105.8 kB / 21.96 MB, free: 4.691 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.001589/0.001589, allocations: 226 kB / 25.26 MB, free: 2.824 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.288/1.288, allocations: 207.7 MB / 236.1 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 54.75 kB / 348 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2175, allocations: 49.16 MB / 397.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01179/0.2293, allocations: 11.83 MB / 408.9 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.2414, allocations: 10.12 MB / 419.1 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.2415, allocations: 1.125 kB / 419.1 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003089/0.2418, allocations: 61.16 kB / 419.1 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002868/0.2421, allocations: 92.83 kB / 419.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01347/0.2555, allocations: 5.017 MB / 424.2 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004115/0.2559, allocations: 241 kB / 424.5 MB, free: 6.035 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.654e-05/0.256, allocations: 7.141 kB / 424.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004484/0.2565, allocations: 182.9 kB / 424.7 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.2566, allocations: 72.75 kB / 424.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.2566, allocations: 8.25 kB / 424.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01297/0.2696, allocations: 6.967 MB / 431.7 MB, free: 488 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.063e-05/0.2697, allocations: 31.86 kB / 431.7 MB, free: 456 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.2698, allocations: 59.78 kB / 431.8 MB, free: 396 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008537/0.2783, allocations: 3.874 MB / 435.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2783, allocations: 0 / 435.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2783, allocations: 0 / 435.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.2783, allocations: 0 / 435.7 MB, free: 12.5 MB / 350.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.00453/0.2829, allocations: 1.083 MB / 436.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2829, allocations: 11.98 kB / 436.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.086e-05/0.2829, allocations: 4.188 kB / 436.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.571e-05/0.283, allocations: 46.73 kB / 436.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004624/0.2835, allocations: 56.8 kB / 436.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.2838, allocations: 162.3 kB / 437 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.2838, allocations: 16.38 kB / 437 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.2838, allocations: 15.94 kB / 437.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.2852, allocations: 431.5 kB / 437.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.2852, allocations: 4 kB / 437.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/0.2852, allocations: 8 kB / 437.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.2852, allocations: 4 kB / 437.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001397/0.2866, allocations: 355.5 kB / 437.8 MB, free: 10.22 MB / 350.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.001408/0.288, allocations: 1.032 MB / 438.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008564/0.2889, allocations: 275.7 kB / 439.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.2892, allocations: 110.8 kB / 439.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08287/0.372, allocations: 25.14 MB / 464.4 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.044e-05/0.3721, allocations: 38.56 kB / 464.4 MB, free: 15.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.983e-06/0.3721, allocations: 0 / 464.4 MB, free: 15.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.00666/0.3787, allocations: 1.518 MB / 465.9 MB, free: 13.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.3788, allocations: 106.8 kB / 466.1 MB, free: 13.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.3789, allocations: 121.7 kB / 466.2 MB, free: 13.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.549e-05/0.379, allocations: 29.7 kB / 466.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.075e-05/0.379, allocations: 104.6 kB / 466.3 MB, free: 13.53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.3791, allocations: 126.9 kB / 466.4 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.3792, allocations: 69.69 kB / 466.5 MB, free: 13.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3794, allocations: 326.8 kB / 466.8 MB, free: 13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003728/0.3798, allocations: 139.9 kB / 467 MB, free: 12.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004232/0.3802, allocations: 202.5 kB / 467.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008012/0.381, allocations: 338.6 kB / 467.5 MB, free: 12.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.381, allocations: 4 kB / 467.5 MB, free: 12.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001056/0.3821, allocations: 426 kB / 467.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.3821, allocations: 4 kB / 467.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3821, allocations: 4.219 kB / 467.9 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002221/0.3823, allocations: 36.83 kB / 467.9 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004565/0.3828, allocations: 91.88 kB / 468 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004068/0.3832, allocations: 0.5484 MB / 468.6 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000264/0.3834, allocations: 19.98 kB / 468.6 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.394e-05/0.3835, allocations: 12.09 kB / 468.6 MB, free: 11.12 MB / 382.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.0001597/0.3836, allocations: 150 kB / 468.8 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.781e-05/0.3837, allocations: 19.89 kB / 468.8 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002186/0.3859, allocations: 1.494 MB / 470.3 MB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.187e-05/0.3859, allocations: 15.97 kB / 470.3 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.3859, allocations: 12.03 kB / 470.3 MB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.3859, allocations: 3.984 kB / 470.3 MB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/0.3889, allocations: 1.982 MB / 472.3 MB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.3889, allocations: 4 kB / 472.3 MB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004412/0.3894, allocations: 83.86 kB / 472.4 MB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003062/0.3897, allocations: 76.88 kB / 472.4 MB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.878e-05/0.3897, allocations: 15.98 kB / 472.5 MB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004101/0.3901, allocations: 0.5913 MB / 473.1 MB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3901, allocations: 4.031 kB / 473.1 MB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002289/0.3924, allocations: 1.737 MB / 474.8 MB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.473e-05/0.3925, allocations: 55.84 kB / 474.8 MB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.049e-05/0.3925, allocations: 11.94 kB / 474.9 MB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003599/0.3929, allocations: 28.02 kB / 474.9 MB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/0.3929, allocations: 27.95 kB / 474.9 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.493e-05/0.393, allocations: 23.92 kB / 474.9 MB, free: 4.645 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.494e-05/0.393, allocations: 91.27 kB / 475 MB, free: 4.555 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.393, allocations: 0 / 475 MB, free: 4.555 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002486/0.3955, allocations: 0.9669 MB / 476 MB, free: 3.586 MB / 382.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.006778/0.4023, allocations: 3.331 MB / 479.3 MB, free: 204 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.4037, allocations: 0.6043 MB / 479.9 MB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4037, allocations: 0 / 479.9 MB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007781/0.4045, allocations: 464.6 kB / 480.4 MB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007294/0.4052, allocations: 84.62 kB / 480.5 MB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006893/0.4121, allocations: 3.943 MB / 484.4 MB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.4123, allocations: 212.3 kB / 484.6 MB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003474/0.4127, allocations: 137.8 kB / 484.8 MB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.4129, allocations: 135.4 kB / 484.9 MB, free: 10.45 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4129, allocations: 0 / 484.9 MB, free: 10.45 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07458/0.4875, allocations: 41.2 MB / 0.5138 GB, free: 1.121 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.68/15.17, allocations: 19.91 kB / 0.5138 GB, free: 1.102 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.00819982495159]