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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006881/0.0006881, allocations: 89.38 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007203/0.0007203, allocations: 173.9 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.172/1.172, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002157/0.000216, allocations: 4 kB / 301.5 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07537/0.0756, allocations: 50.41 MB / 351.9 MB, free: 3.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01319/0.08883, allocations: 13.24 MB / 365.2 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1531/0.242, allocations: 12.26 MB / 377.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.2421, allocations: 2.672 kB / 377.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002854/0.2424, allocations: 61.33 kB / 377.5 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002225/0.2427, allocations: 87.69 kB / 377.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009355/0.252, allocations: 4.007 MB / 381.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.2523, allocations: 267.6 kB / 381.8 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.182e-05/0.2524, allocations: 20.86 kB / 381.9 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003454/0.2527, allocations: 178.6 kB / 382 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.2529, allocations: 73.05 kB / 382.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.2529, allocations: 4.75 kB / 382.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01025/0.2632, allocations: 6.917 MB / 389 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.299e-05/0.2632, allocations: 23.23 kB / 389.1 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.174e-05/0.2633, allocations: 91.86 kB / 389.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00437/0.2677, allocations: 3.865 MB / 393 MB, free: 5.617 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2677, allocations: 4 kB / 393 MB, free: 5.613 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2677, allocations: 0 / 393 MB, free: 5.613 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.2677, allocations: 0 / 393 MB, free: 5.613 MB / 302.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.003695/0.2714, allocations: 1.102 MB / 394.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.2715, allocations: 10.34 kB / 394.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.653e-05/0.2715, allocations: 46.39 kB / 394.2 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004127/0.2719, allocations: 62.36 kB / 394.2 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001564/0.2721, allocations: 216.8 kB / 394.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.2721, allocations: 12.06 kB / 394.5 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.561e-05/0.2722, allocations: 14.25 kB / 394.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.2733, allocations: 393 kB / 394.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.2733, allocations: 9.156 kB / 394.9 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.2733, allocations: 6.344 kB / 394.9 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.2734, allocations: 3.969 kB / 394.9 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.2746, allocations: 377.2 kB / 395.2 MB, free: 4.055 MB / 302.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.0009474/0.2756, allocations: 1.194 MB / 396.4 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007264/0.2763, allocations: 290.1 kB / 396.7 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002485/0.2766, allocations: 122.1 kB / 396.8 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08654/0.3631, allocations: 47.88 MB / 444.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.3632, allocations: 39.06 kB / 444.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.874e-06/0.3632, allocations: 0 / 444.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006379/0.3696, allocations: 1.617 MB / 446.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.3697, allocations: 120.6 kB / 446.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.3698, allocations: 121.7 kB / 446.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.616e-05/0.3698, allocations: 29.7 kB / 446.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.62e-05/0.3699, allocations: 100.5 kB / 446.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.991e-05/0.37, allocations: 120 kB / 446.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-05/0.3701, allocations: 29.7 kB / 446.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3702, allocations: 326.8 kB / 447.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003942/0.3706, allocations: 139.9 kB / 447.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004109/0.371, allocations: 202.8 kB / 447.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007897/0.3718, allocations: 354.5 kB / 447.9 MB, free: 12.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3718, allocations: 4 kB / 447.9 MB, free: 12.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001044/0.3728, allocations: 433.9 kB / 448.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3729, allocations: 11.94 kB / 448.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-06/0.3729, allocations: 0 / 448.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002238/0.3731, allocations: 40.83 kB / 448.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004311/0.3735, allocations: 100 kB / 448.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003378/0.3739, allocations: 0.5484 MB / 449 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.3742, allocations: 27.98 kB / 449 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.301e-05/0.3742, allocations: 19.98 kB / 449 MB, free: 10.8 MB / 366.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.0001354/0.3744, allocations: 133.8 kB / 449.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.669e-05/0.3745, allocations: 15.91 kB / 449.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002/0.3765, allocations: 1.47 MB / 450.7 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.158e-05/0.3765, allocations: 19.97 kB / 450.7 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3765, allocations: 0 / 450.7 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3765, allocations: 0 / 450.7 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/0.3792, allocations: 2.005 MB / 452.7 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3792, allocations: 0 / 452.7 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004132/0.3796, allocations: 87.86 kB / 452.8 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003217/0.38, allocations: 77.28 kB / 452.8 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.38, allocations: 15.98 kB / 452.9 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003222/0.3803, allocations: 0.5835 MB / 453.4 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.3804, allocations: 8.672 kB / 453.5 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.3824, allocations: 1.705 MB / 455.2 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.11e-05/0.3825, allocations: 128.5 kB / 455.3 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.368e-05/0.3826, allocations: 8 kB / 455.3 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003516/0.3829, allocations: 27.92 kB / 455.3 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.012e-05/0.383, allocations: 35.89 kB / 455.4 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-05/0.383, allocations: 19.98 kB / 455.4 MB, free: 4.309 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.902e-05/0.3831, allocations: 91.27 kB / 455.5 MB, free: 4.219 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3831, allocations: 0 / 455.5 MB, free: 4.219 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002448/0.3855, allocations: 0.9565 MB / 456.4 MB, free: 3.262 MB / 366.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.00638/0.3919, allocations: 3.293 MB / 459.7 MB, free: 28 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.393, allocations: 0.6092 MB / 460.3 MB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.393, allocations: 448 / 460.3 MB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007212/0.3938, allocations: 0.5123 MB / 460.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000735/0.3945, allocations: 80.23 kB / 460.9 MB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006281/0.4008, allocations: 4.163 MB / 465.1 MB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.4011, allocations: 0.8256 MB / 465.9 MB, free: 9.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000351/0.4015, allocations: 134.1 kB / 466 MB, free: 9.527 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001924/0.4017, allocations: 123.4 kB / 466.2 MB, free: 9.406 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4017, allocations: 7.938 kB / 466.2 MB, free: 9.398 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05597/0.4577, allocations: 39.95 MB / 0.4942 GB, free: 1.555 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/0.4579, allocations: 222.1 kB / 0.4945 GB, free: 1.297 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.663/4.121, allocations: 0 / 0.4945 GB, free: 1.297 MB / 414.1 MB (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 --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) 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) Reference file matches