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.005945/0.005945, allocations: 111 kB / 21.97 MB, free: 5.254 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.001414/0.001414, allocations: 202.5 kB / 25.27 MB, free: 3.238 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.289/1.289, allocations: 207.6 MB / 236 MB, free: 9.988 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.001735/0.001735, allocations: 51.92 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2175/0.2193, allocations: 49.16 MB / 397.1 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01196/0.2312, allocations: 13.03 MB / 410.1 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01377/0.245, allocations: 11.63 MB / 421.8 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.2452, allocations: 1.438 kB / 421.8 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003263/0.2455, allocations: 67.2 kB / 421.8 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003222/0.2458, allocations: 89.34 kB / 421.9 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01516/0.261, allocations: 5.066 MB / 427 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004211/0.2614, allocations: 237.9 kB / 427.2 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.506e-05/0.2614, allocations: 14.47 kB / 427.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004834/0.2619, allocations: 195.8 kB / 427.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.2621, allocations: 75.86 kB / 427.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.15e-05/0.2621, allocations: 8 kB / 427.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01379/0.2759, allocations: 7 MB / 434.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.242e-05/0.276, allocations: 27.91 kB / 434.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.2761, allocations: 75.72 kB / 434.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008641/0.2848, allocations: 3.874 MB / 438.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2848, allocations: 0 / 438.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.337e-06/0.2848, allocations: 4 kB / 438.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.2848, allocations: 3.938 kB / 438.5 MB, free: 9.855 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.004703/0.2895, allocations: 1.087 MB / 439.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.2895, allocations: 11.98 kB / 439.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.715e-05/0.2895, allocations: 8.125 kB / 439.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.527e-05/0.2896, allocations: 46.73 kB / 439.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004734/0.2901, allocations: 56.8 kB / 439.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.2903, allocations: 170.2 kB / 439.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.2904, allocations: 12.38 kB / 439.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.554e-05/0.2904, allocations: 15.94 kB / 439.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.2917, allocations: 384 kB / 440.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.2917, allocations: 3.984 kB / 440.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.2917, allocations: 4 kB / 440.3 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.2917, allocations: 4 kB / 440.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.2932, allocations: 363.5 kB / 440.6 MB, free: 7.613 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.001444/0.2946, allocations: 1.152 MB / 441.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008643/0.2955, allocations: 275.7 kB / 442.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002845/0.2957, allocations: 114.8 kB / 442.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08671/0.3825, allocations: 25.05 MB / 467.2 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.3825, allocations: 38.5 kB / 467.3 MB, free: 12.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.3825, allocations: 0 / 467.3 MB, free: 12.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.006825/0.3893, allocations: 1.506 MB / 468.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.3894, allocations: 110.8 kB / 468.9 MB, free: 11.15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.3895, allocations: 121.9 kB / 469 MB, free: 11.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.404e-05/0.3896, allocations: 33.7 kB / 469 MB, free: 10.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.894e-05/0.3896, allocations: 100.6 kB / 469.1 MB, free: 10.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.3897, allocations: 123 kB / 469.2 MB, free: 10.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.3899, allocations: 65.69 kB / 469.3 MB, free: 10.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.39, allocations: 330.8 kB / 469.6 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.3904, allocations: 135.9 kB / 469.8 MB, free: 10.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00046/0.3909, allocations: 202.5 kB / 470 MB, free: 10 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000839/0.3917, allocations: 346.6 kB / 470.3 MB, free: 9.641 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3917, allocations: 384 / 470.3 MB, free: 9.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001114/0.3928, allocations: 430 kB / 470.7 MB, free: 9.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.3928, allocations: 4 kB / 470.7 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.3928, allocations: 8 kB / 470.7 MB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002208/0.3931, allocations: 44.94 kB / 470.8 MB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004533/0.3935, allocations: 87.88 kB / 470.9 MB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000421/0.3939, allocations: 0.5485 MB / 471.4 MB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/0.3942, allocations: 15.98 kB / 471.4 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/0.3942, allocations: 24.08 kB / 471.4 MB, free: 8.453 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.0001581/0.3944, allocations: 137.7 kB / 471.6 MB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.947e-05/0.3945, allocations: 19.91 kB / 471.6 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002232/0.3967, allocations: 1.494 MB / 473.1 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-05/0.3968, allocations: 27.95 kB / 473.1 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3968, allocations: 0 / 473.1 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.3968, allocations: 4 kB / 473.1 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/0.3998, allocations: 2.002 MB / 475.1 MB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.3998, allocations: 0 / 475.1 MB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004357/0.4003, allocations: 83.98 kB / 475.2 MB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003091/0.4006, allocations: 72.75 kB / 475.3 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.819e-05/0.4006, allocations: 15.98 kB / 475.3 MB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004606/0.4011, allocations: 0.5952 MB / 475.9 MB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.4011, allocations: 4.031 kB / 475.9 MB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002374/0.4035, allocations: 1.737 MB / 477.6 MB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.69e-05/0.4035, allocations: 55.47 kB / 477.7 MB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.464e-05/0.4036, allocations: 19.94 kB / 477.7 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003446/0.4039, allocations: 20.03 kB / 477.7 MB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.126e-05/0.404, allocations: 32.03 kB / 477.8 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/0.404, allocations: 19.98 kB / 477.8 MB, free: 1.977 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.829e-05/0.4041, allocations: 91.27 kB / 477.9 MB, free: 1.887 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4041, allocations: 0 / 477.9 MB, free: 1.887 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002554/0.4067, allocations: 0.9669 MB / 478.8 MB, free: 0.918 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.007091/0.4137, allocations: 3.325 MB / 482.2 MB, free: 13.54 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.4152, allocations: 0.6082 MB / 482.8 MB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4152, allocations: 0 / 482.8 MB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007721/0.4159, allocations: 468.6 kB / 483.2 MB, free: 12.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007448/0.4167, allocations: 80.42 kB / 483.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00717/0.4239, allocations: 3.943 MB / 487.2 MB, free: 8.289 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.4243, allocations: 0.8177 MB / 488.1 MB, free: 7.445 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003453/0.4247, allocations: 141.9 kB / 488.2 MB, free: 7.305 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002288/0.4249, allocations: 127.3 kB / 488.3 MB, free: 7.18 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4249, allocations: 0 / 488.3 MB, free: 7.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07931/0.5042, allocations: 41.32 MB / 0.5172 GB, free: 13.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/14.93, allocations: 15.98 kB / 0.5173 GB, free: 13.72 MB / 446.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: 17.778827460948378]