Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001053/0.001053, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.22, allocations: 50.54 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01546/0.2355, allocations: 13 MB / 421.7 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0122/0.2477, allocations: 11.55 MB / 433.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.2479, allocations: 0 / 433.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003212/0.2482, allocations: 71.55 kB / 433.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002891/0.2486, allocations: 79.44 kB / 433.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0122/0.2608, allocations: 5.085 MB / 438.5 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000338/0.2611, allocations: 238.9 kB / 438.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.262e-05/0.2612, allocations: 13.44 kB / 438.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004121/0.2616, allocations: 195.3 kB / 438.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.2617, allocations: 71.69 kB / 439 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.2618, allocations: 8 kB / 439 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01109/0.2729, allocations: 7.001 MB / 446 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.286e-05/0.273, allocations: 27.91 kB / 446.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.531e-05/0.2731, allocations: 67.73 kB / 446.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006883/0.28, allocations: 3.876 MB / 450 MB, free: 8.141 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.28, allocations: 0 / 450 MB, free: 8.141 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.28, allocations: 0 / 450 MB, free: 8.141 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.28, allocations: 0 / 450 MB, free: 8.141 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.00443/0.2845, allocations: 1.147 MB / 451.1 MB, free: 6.945 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.2845, allocations: 8.031 kB / 451.1 MB, free: 6.938 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.792e-05/0.2846, allocations: 46.73 kB / 451.2 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004618/0.285, allocations: 56.7 kB / 451.2 MB, free: 6.828 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.2854, allocations: 220.2 kB / 451.5 MB, free: 6.574 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.2854, allocations: 12.66 kB / 451.5 MB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.91e-05/0.2855, allocations: 24.03 kB / 451.5 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.2867, allocations: 380.9 kB / 451.9 MB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.2868, allocations: 0 / 451.9 MB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.2868, allocations: 8 kB / 451.9 MB, free: 6.129 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.2868, allocations: 4 kB / 451.9 MB, free: 6.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.2882, allocations: 359.5 kB / 452.2 MB, free: 5.773 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.001303/0.2895, allocations: 1.191 MB / 453.4 MB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008296/0.2904, allocations: 283.2 kB / 453.7 MB, free: 4.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/0.2906, allocations: 114.8 kB / 453.8 MB, free: 4.059 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09988/0.3905, allocations: 52.81 MB / 0.4947 GB, free: 8.602 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.3906, allocations: 30.56 kB / 0.4948 GB, free: 8.562 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 1.833e-06/0.3906, allocations: 0 / 0.4948 GB, free: 8.562 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.00681/0.3974, allocations: 1.575 MB / 0.4963 GB, free: 6.934 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.3975, allocations: 118.7 kB / 0.4964 GB, free: 6.793 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.164e-05/0.3976, allocations: 121.7 kB / 0.4965 GB, free: 6.664 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.3976, allocations: 29.7 kB / 0.4966 GB, free: 6.629 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.498e-05/0.3977, allocations: 104.5 kB / 0.4967 GB, free: 6.523 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.005e-05/0.3978, allocations: 118.4 kB / 0.4968 GB, free: 6.406 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.3979, allocations: 73.59 kB / 0.4969 GB, free: 6.328 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3981, allocations: 330.8 kB / 0.4972 GB, free: 5.996 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003854/0.3984, allocations: 135.7 kB / 0.4973 GB, free: 5.863 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004231/0.3989, allocations: 194.8 kB / 0.4975 GB, free: 5.648 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007971/0.3997, allocations: 346.5 kB / 0.4978 GB, free: 5.285 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3997, allocations: 4 kB / 0.4978 GB, free: 5.281 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001068/0.4008, allocations: 430 kB / 0.4982 GB, free: 4.852 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.4008, allocations: 8 kB / 0.4982 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.4008, allocations: 0 / 0.4982 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002323/0.4011, allocations: 32.84 kB / 0.4983 GB, free: 4.809 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004607/0.4015, allocations: 91.86 kB / 0.4984 GB, free: 4.719 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003718/0.4019, allocations: 0.5563 MB / 0.4989 GB, free: 4.137 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/0.4022, allocations: 19.98 kB / 0.4989 GB, free: 4.117 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.856e-05/0.4022, allocations: 15.98 kB / 0.4989 GB, free: 4.102 MB / 430.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.0001503/0.4024, allocations: 149.2 kB / 0.4991 GB, free: 3.949 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.4025, allocations: 15.91 kB / 0.4991 GB, free: 3.934 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/0.4046, allocations: 1.443 MB / 0.5005 GB, free: 2.477 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.442e-05/0.4046, allocations: 23.97 kB / 0.5005 GB, free: 2.453 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4046, allocations: 0 / 0.5005 GB, free: 2.453 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4046, allocations: 0 / 0.5005 GB, free: 2.453 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002828/0.4075, allocations: 1.975 MB / 0.5025 GB, free: 416 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.4075, allocations: 0 / 0.5025 GB, free: 416 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004329/0.4079, allocations: 79.86 kB / 0.5025 GB, free: 336 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003083/0.4083, allocations: 76.83 kB / 0.5026 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/0.4083, allocations: 15.98 kB / 0.5026 GB, free: 240 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003599/0.4087, allocations: 0.5836 MB / 0.5032 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.4087, allocations: 0 / 0.5032 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.4109, allocations: 1.698 MB / 0.5048 GB, free: 13.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.4111, allocations: 124.8 kB / 0.505 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.983e-05/0.4111, allocations: 16.03 kB / 0.505 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003725/0.4115, allocations: 27.92 kB / 0.505 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.613e-05/0.4116, allocations: 39.97 kB / 0.505 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.204e-05/0.4116, allocations: 15.94 kB / 0.5051 GB, free: 13.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.602e-05/0.4117, allocations: 91.27 kB / 0.5051 GB, free: 13.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4117, allocations: 0 / 0.5051 GB, free: 13.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002642/0.4143, allocations: 0.9644 MB / 0.5061 GB, free: 12.61 MB / 446.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.007544/0.4219, allocations: 3.268 MB / 0.5093 GB, free: 9.289 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.4235, allocations: 0.6041 MB / 0.5099 GB, free: 8.684 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.4235, allocations: 0 / 0.5099 GB, free: 8.684 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008596/0.4244, allocations: 0.5209 MB / 0.5104 GB, free: 8.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008307/0.4252, allocations: 80.08 kB / 0.5105 GB, free: 8.082 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007505/0.4328, allocations: 3.895 MB / 0.5143 GB, free: 4.035 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.4332, allocations: 0.8178 MB / 0.5151 GB, free: 3.188 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003818/0.4336, allocations: 134 kB / 0.5152 GB, free: 3.055 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002254/0.4338, allocations: 127.4 kB / 0.5153 GB, free: 2.93 MB / 446.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4338, allocations: 0 / 0.5153 GB, free: 2.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2478/0.6816, allocations: 40.79 MB / 0.5551 GB, free: 112.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.51, allocations: 6.094 kB / 0.5551 GB, free: 112.2 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches