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.001493/0.001493, allocations: 108.8 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.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.001651/0.001651, allocations: 187.8 kB / 24.5 MB, free: 4.02 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.317/1.317, allocations: 225.7 MB / 253.3 MB, free: 13.02 MB / 206.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 47.92 kB / 371.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2135, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01614/0.2297, allocations: 13.02 MB / 436.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01373/0.2434, allocations: 11.62 MB / 448 MB, free: 5.871 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.2435, allocations: 0 / 448 MB, free: 5.871 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003324/0.2439, allocations: 71.56 kB / 448.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003186/0.2442, allocations: 87.42 kB / 448.2 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0124/0.2566, allocations: 5.081 MB / 453.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003834/0.257, allocations: 231 kB / 453.5 MB, free: 420 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.245e-05/0.257, allocations: 5.641 kB / 453.5 MB, free: 408 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004825/0.2575, allocations: 207.3 kB / 453.7 MB, free: 200 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.2577, allocations: 75.75 kB / 453.8 MB, free: 124 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/0.2577, allocations: 8 kB / 453.8 MB, free: 116 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01279/0.2705, allocations: 7.001 MB / 460.8 MB, free: 9.105 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.2706, allocations: 31.91 kB / 460.8 MB, free: 9.074 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.2707, allocations: 71.72 kB / 460.9 MB, free: 9.004 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009203/0.2799, allocations: 3.874 MB / 464.8 MB, free: 5.121 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.2799, allocations: 3.938 kB / 464.8 MB, free: 5.117 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2799, allocations: 3.938 kB / 464.8 MB, free: 5.113 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.2799, allocations: 0 / 464.8 MB, free: 5.113 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.004915/0.2848, allocations: 1.084 MB / 465.9 MB, free: 3.996 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.2849, allocations: 12.03 kB / 465.9 MB, free: 3.984 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.744e-05/0.2849, allocations: 4.469 kB / 465.9 MB, free: 3.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.469e-05/0.285, allocations: 46.73 kB / 465.9 MB, free: 3.926 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004887/0.2855, allocations: 52.8 kB / 466 MB, free: 3.875 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002854/0.2858, allocations: 170.2 kB / 466.1 MB, free: 3.684 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/0.2858, allocations: 20.3 kB / 466.2 MB, free: 3.664 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.61e-05/0.2859, allocations: 23.89 kB / 466.2 MB, free: 3.641 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.2872, allocations: 380.9 kB / 466.6 MB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.2872, allocations: 0 / 466.6 MB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/0.2872, allocations: 8 kB / 466.6 MB, free: 3.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.2872, allocations: 4 kB / 466.6 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001434/0.2887, allocations: 355.5 kB / 466.9 MB, free: 2.879 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.001524/0.2902, allocations: 1.152 MB / 468.1 MB, free: 1.633 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000886/0.2911, allocations: 279.7 kB / 468.3 MB, free: 1.332 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.2914, allocations: 110.8 kB / 468.4 MB, free: 1.215 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08744/0.3788, allocations: 25.05 MB / 493.5 MB, free: 8.133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.763e-05/0.3788, allocations: 38.56 kB / 493.5 MB, free: 8.086 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.184e-06/0.3788, allocations: 4 kB / 493.5 MB, free: 8.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.007113/0.386, allocations: 1.507 MB / 495 MB, free: 6.543 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.796e-05/0.386, allocations: 106.8 kB / 495.2 MB, free: 6.414 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.3861, allocations: 117.9 kB / 495.3 MB, free: 6.289 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.3862, allocations: 33.7 kB / 495.3 MB, free: 6.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.359e-05/0.3863, allocations: 108.6 kB / 495.4 MB, free: 6.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.3864, allocations: 122.9 kB / 495.5 MB, free: 6.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.3865, allocations: 69.84 kB / 495.6 MB, free: 5.945 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3867, allocations: 330.8 kB / 495.9 MB, free: 5.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/0.3871, allocations: 135.9 kB / 496.1 MB, free: 5.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005407/0.3876, allocations: 190.8 kB / 496.2 MB, free: 5.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008512/0.3885, allocations: 354.5 kB / 496.6 MB, free: 4.898 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3885, allocations: 0 / 496.6 MB, free: 4.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001186/0.3896, allocations: 426 kB / 497 MB, free: 4.473 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.3897, allocations: 4 kB / 497 MB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.3897, allocations: 4 kB / 497 MB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002646/0.3899, allocations: 37.02 kB / 497 MB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004661/0.3904, allocations: 91.88 kB / 497.1 MB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004328/0.3908, allocations: 0.5483 MB / 497.7 MB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.3911, allocations: 24 kB / 497.7 MB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.099e-05/0.3912, allocations: 16 kB / 497.7 MB, free: 3.723 MB / 398.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.0001833/0.3914, allocations: 145.8 kB / 497.9 MB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.3915, allocations: 19.89 kB / 497.9 MB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002302/0.3938, allocations: 1.502 MB / 499.4 MB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-05/0.3938, allocations: 24 kB / 499.4 MB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3938, allocations: 0 / 499.4 MB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.3938, allocations: 3.984 kB / 499.4 MB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003214/0.397, allocations: 2.014 MB / 0.4897 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/0.397, allocations: 4 kB / 0.4897 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004482/0.3975, allocations: 84 kB / 0.4898 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003333/0.3978, allocations: 76.73 kB / 0.4898 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.026e-05/0.3979, allocations: 8 kB / 0.4898 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004281/0.3983, allocations: 0.5914 MB / 0.4904 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3983, allocations: 3.938 kB / 0.4904 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.4008, allocations: 1.737 MB / 0.4921 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.457e-05/0.4009, allocations: 59.45 kB / 0.4922 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.05e-05/0.4009, allocations: 15.97 kB / 0.4922 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003697/0.4013, allocations: 23.92 kB / 0.4922 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.279e-05/0.4014, allocations: 31.94 kB / 0.4922 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.525e-05/0.4014, allocations: 12 kB / 0.4923 GB, free: 13.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.479e-05/0.4015, allocations: 95.2 kB / 0.4923 GB, free: 13.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4015, allocations: 4 kB / 0.4923 GB, free: 13.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002935/0.4044, allocations: 0.9669 MB / 0.4933 GB, free: 12.17 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.007355/0.4118, allocations: 3.329 MB / 0.4965 GB, free: 8.797 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.4133, allocations: 0.6165 MB / 0.4971 GB, free: 8.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.4133, allocations: 0 / 0.4971 GB, free: 8.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008184/0.4141, allocations: 468.6 kB / 0.4976 GB, free: 7.723 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007735/0.4149, allocations: 76.42 kB / 0.4977 GB, free: 7.648 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007554/0.4224, allocations: 3.932 MB / 0.5015 GB, free: 3.559 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004286/0.4228, allocations: 0.8141 MB / 0.5023 GB, free: 2.715 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003673/0.4232, allocations: 145.9 kB / 0.5024 GB, free: 2.574 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.4234, allocations: 127.4 kB / 0.5026 GB, free: 2.449 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4234, allocations: 0 / 0.5026 GB, free: 2.449 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.264/0.6874, allocations: 41.34 MB / 0.5429 GB, free: 114.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/15.12, allocations: 6.625 kB / 0.5429 GB, free: 114.5 MB / 446.1 MB " [Timeout remaining time 645] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/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: 18.022725279966835]