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.001261/0.001261, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001278/0.001278, allocations: 186.8 kB / 24.49 MB, free: 3.961 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.326/1.326, allocations: 225.7 MB / 253.3 MB, free: 12.85 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.001391/0.001391, allocations: 43.94 kB / 371.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.2191, allocations: 52.2 MB / 423.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01558/0.2347, allocations: 11.81 MB / 435.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01285/0.2475, allocations: 10.12 MB / 445.3 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.938e-05/0.2476, allocations: 4 kB / 445.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003097/0.2479, allocations: 63.59 kB / 445.3 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002712/0.2482, allocations: 83.42 kB / 445.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01221/0.2604, allocations: 5.038 MB / 450.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003773/0.2608, allocations: 234.9 kB / 450.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.152e-05/0.2608, allocations: 5.641 kB / 450.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004247/0.2612, allocations: 183.4 kB / 450.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.2614, allocations: 79.67 kB / 451 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.188e-05/0.2614, allocations: 8 kB / 451 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01204/0.2734, allocations: 6.962 MB / 457.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.669e-05/0.2735, allocations: 23.92 kB / 457.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001219/0.2737, allocations: 59.78 kB / 458 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007723/0.2814, allocations: 3.867 MB / 461.9 MB, free: 7.812 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.2814, allocations: 0 / 461.9 MB, free: 7.812 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2814, allocations: 8 kB / 461.9 MB, free: 7.805 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.2814, allocations: 0 / 461.9 MB, free: 7.805 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.004293/0.2857, allocations: 1.084 MB / 463 MB, free: 6.688 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.2857, allocations: 12.03 kB / 463 MB, free: 6.676 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.565e-05/0.2857, allocations: 4.469 kB / 463 MB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.785e-05/0.2858, allocations: 50.73 kB / 463 MB, free: 6.613 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004544/0.2863, allocations: 52.8 kB / 463.1 MB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.2866, allocations: 162.3 kB / 463.2 MB, free: 6.379 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.2866, allocations: 16.31 kB / 463.3 MB, free: 6.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.092e-05/0.2866, allocations: 23.83 kB / 463.3 MB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.2879, allocations: 440.2 kB / 463.7 MB, free: 5.867 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.2879, allocations: 4 kB / 463.7 MB, free: 5.863 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.288, allocations: 4 kB / 463.7 MB, free: 5.859 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.288, allocations: 4 kB / 463.7 MB, free: 5.855 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001415/0.2894, allocations: 367.5 kB / 464.1 MB, free: 5.496 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.001362/0.2908, allocations: 1.024 MB / 465.1 MB, free: 4.402 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008316/0.2916, allocations: 263.8 kB / 465.4 MB, free: 4.117 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002869/0.2919, allocations: 122.8 kB / 465.5 MB, free: 3.988 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08378/0.3757, allocations: 25.15 MB / 490.6 MB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/0.3757, allocations: 38.56 kB / 490.7 MB, free: 10.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.853e-06/0.3757, allocations: 0 / 490.7 MB, free: 10.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.0068/0.3825, allocations: 1.491 MB / 492.2 MB, free: 9.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.575e-05/0.3826, allocations: 110.8 kB / 492.3 MB, free: 9.098 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.3827, allocations: 121.8 kB / 492.4 MB, free: 8.969 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.3827, allocations: 29.7 kB / 492.4 MB, free: 8.934 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.013e-05/0.3828, allocations: 104.6 kB / 492.5 MB, free: 8.828 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.3829, allocations: 127 kB / 492.6 MB, free: 8.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.383, allocations: 81.34 kB / 492.7 MB, free: 8.617 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3832, allocations: 330.8 kB / 493 MB, free: 8.285 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003756/0.3836, allocations: 127.9 kB / 493.2 MB, free: 8.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000438/0.384, allocations: 198.8 kB / 493.4 MB, free: 7.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000842/0.3848, allocations: 346.6 kB / 493.7 MB, free: 7.578 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3848, allocations: 0 / 493.7 MB, free: 7.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00111/0.386, allocations: 430 kB / 494.1 MB, free: 7.148 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.386, allocations: 8 kB / 494.1 MB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.386, allocations: 0 / 494.1 MB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002277/0.3862, allocations: 32.84 kB / 494.2 MB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004606/0.3867, allocations: 87.88 kB / 494.2 MB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004603/0.3871, allocations: 0.5645 MB / 494.8 MB, free: 6.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002701/0.3874, allocations: 15.98 kB / 494.8 MB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-05/0.3874, allocations: 19.98 kB / 494.8 MB, free: 6.395 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.0001479/0.3876, allocations: 133.7 kB / 495 MB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.3877, allocations: 23.84 kB / 495 MB, free: 6.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00226/0.39, allocations: 1.502 MB / 496.5 MB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.684e-05/0.39, allocations: 27.95 kB / 496.5 MB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.39, allocations: 4 kB / 496.5 MB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.39, allocations: 0 / 496.5 MB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/0.393, allocations: 1.979 MB / 498.5 MB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.3931, allocations: 7.938 kB / 498.5 MB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004454/0.3935, allocations: 76.06 kB / 498.6 MB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003038/0.3938, allocations: 80.67 kB / 498.7 MB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.403e-05/0.3938, allocations: 12 kB / 498.7 MB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004091/0.3942, allocations: 0.5875 MB / 499.3 MB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3943, allocations: 3.984 kB / 499.3 MB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002263/0.3965, allocations: 1.737 MB / 0.4893 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.506e-05/0.3966, allocations: 59.47 kB / 0.4893 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.44e-05/0.3966, allocations: 20.06 kB / 0.4893 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003774/0.397, allocations: 19.98 kB / 0.4894 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.3971, allocations: 43.8 kB / 0.4894 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.874e-05/0.3971, allocations: 15.98 kB / 0.4894 GB, free: 15.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.772e-05/0.3972, allocations: 87.28 kB / 0.4895 GB, free: 15.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3972, allocations: 0 / 0.4895 GB, free: 15.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002496/0.3997, allocations: 0.9669 MB / 0.4904 GB, free: 14.87 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.006246/0.4059, allocations: 3.326 MB / 0.4937 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.4073, allocations: 0.6046 MB / 0.4943 GB, free: 10.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.4073, allocations: 0 / 0.4943 GB, free: 10.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007822/0.4081, allocations: 477.4 kB / 0.4947 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007511/0.4088, allocations: 76.14 kB / 0.4948 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007216/0.416, allocations: 3.947 MB / 0.4987 GB, free: 6.262 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.4162, allocations: 220.3 kB / 0.4989 GB, free: 6.023 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003351/0.4166, allocations: 129.8 kB / 0.499 GB, free: 5.898 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000238/0.4168, allocations: 131.3 kB / 0.4991 GB, free: 5.77 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4168, allocations: 0 / 0.4991 GB, free: 5.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2534/0.6702, allocations: 41.23 MB / 0.5394 GB, free: 115.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.65/15.32, allocations: 3.562 kB / 0.5394 GB, free: 115.6 MB / 446.1 MB " [Timeout remaining time 644] (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.204083345015533]