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.001256/0.001256, allocations: 118.7 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001295, allocations: 203.9 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 59.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2478, allocations: 50.54 MB / 408.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01815/0.266, allocations: 13.01 MB / 421.7 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0143/0.2804, allocations: 11.54 MB / 433.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.2805, allocations: 0 / 433.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003324/0.2809, allocations: 79.55 kB / 433.4 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002983/0.2812, allocations: 79.44 kB / 433.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01316/0.2944, allocations: 5.078 MB / 438.5 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000382/0.2948, allocations: 231 kB / 438.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.916e-05/0.2949, allocations: 17.42 kB / 438.8 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004522/0.2953, allocations: 191.3 kB / 439 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.2955, allocations: 79.62 kB / 439 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/0.2955, allocations: 8 kB / 439 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01283/0.3083, allocations: 6.981 MB / 446 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.3085, allocations: 39.83 kB / 446.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.3086, allocations: 63.73 kB / 446.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008867/0.3175, allocations: 3.89 MB / 450 MB, free: 8.137 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3175, allocations: 0 / 450 MB, free: 8.137 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3176, allocations: 0 / 450 MB, free: 8.137 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.3176, allocations: 0 / 450 MB, free: 8.137 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.004893/0.3225, allocations: 1.178 MB / 451.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.3225, allocations: 8.031 kB / 451.2 MB, free: 6.898 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.579e-05/0.3226, allocations: 46.73 kB / 451.2 MB, free: 6.844 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000461/0.3231, allocations: 52.84 kB / 451.3 MB, free: 6.793 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003286/0.3234, allocations: 224.1 kB / 451.5 MB, free: 6.535 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.115e-05/0.3235, allocations: 12.66 kB / 451.5 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.414e-05/0.3235, allocations: 16.12 kB / 451.5 MB, free: 6.508 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.3248, allocations: 384.9 kB / 451.9 MB, free: 6.102 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.3248, allocations: 7.938 kB / 451.9 MB, free: 6.094 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.535e-05/0.3249, allocations: 4 kB / 451.9 MB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3249, allocations: 4 kB / 451.9 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.3263, allocations: 351.6 kB / 452.3 MB, free: 5.742 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.001543/0.3278, allocations: 1.195 MB / 453.5 MB, free: 4.445 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008614/0.3287, allocations: 279.8 kB / 453.7 MB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002785/0.329, allocations: 114.3 kB / 453.9 MB, free: 4.027 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.102/0.431, allocations: 52.81 MB / 0.4948 GB, free: 8.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.233e-05/0.4311, allocations: 42.5 kB / 0.4948 GB, free: 8.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 1.883e-06/0.4311, allocations: 0 / 0.4948 GB, free: 8.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.006876/0.438, allocations: 1.576 MB / 0.4964 GB, free: 6.887 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.25e-05/0.4381, allocations: 110.9 kB / 0.4965 GB, free: 6.754 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.4382, allocations: 117.8 kB / 0.4966 GB, free: 6.629 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.205e-05/0.4382, allocations: 29.7 kB / 0.4966 GB, free: 6.594 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.962e-05/0.4383, allocations: 109 kB / 0.4967 GB, free: 6.484 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.4384, allocations: 130.9 kB / 0.4968 GB, free: 6.355 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.4386, allocations: 65.69 kB / 0.4969 GB, free: 6.285 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.4387, allocations: 330.8 kB / 0.4972 GB, free: 5.953 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004006/0.4391, allocations: 147.6 kB / 0.4974 GB, free: 5.809 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000439/0.4396, allocations: 194.8 kB / 0.4975 GB, free: 5.594 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008001/0.4404, allocations: 346.5 kB / 0.4979 GB, free: 5.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.4404, allocations: 4 kB / 0.4979 GB, free: 5.227 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001081/0.4415, allocations: 422 kB / 0.4983 GB, free: 4.805 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.4415, allocations: 8 kB / 0.4983 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.4415, allocations: 3.984 kB / 0.4983 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002523/0.4418, allocations: 44.98 kB / 0.4983 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004868/0.4423, allocations: 87.88 kB / 0.4984 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004226/0.4427, allocations: 0.5445 MB / 0.499 GB, free: 4.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.443, allocations: 24.11 kB / 0.499 GB, free: 4.066 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-05/0.4431, allocations: 19.98 kB / 0.499 GB, free: 4.047 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.0001622/0.4432, allocations: 133.7 kB / 0.4991 GB, free: 3.906 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.4434, allocations: 19.91 kB / 0.4991 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002209/0.4456, allocations: 1.443 MB / 0.5006 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.99e-05/0.4456, allocations: 23.97 kB / 0.5006 GB, free: 2.406 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.4456, allocations: 0 / 0.5006 GB, free: 2.406 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.4457, allocations: 4 kB / 0.5006 GB, free: 2.402 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003078/0.4487, allocations: 1.971 MB / 0.5025 GB, free: 368 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/0.4488, allocations: 12.11 kB / 0.5025 GB, free: 356 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004435/0.4492, allocations: 75.88 kB / 0.5026 GB, free: 280 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000319/0.4496, allocations: 68.78 kB / 0.5027 GB, free: 208 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/0.4496, allocations: 16 kB / 0.5027 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004286/0.45, allocations: 0.5913 MB / 0.5032 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.4501, allocations: 4.031 kB / 0.5032 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002282/0.4523, allocations: 1.694 MB / 0.5049 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.4525, allocations: 128.6 kB / 0.505 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.188e-05/0.4525, allocations: 19.97 kB / 0.505 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003593/0.4529, allocations: 19.92 kB / 0.5051 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.579e-05/0.453, allocations: 31.95 kB / 0.5051 GB, free: 13.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.077e-05/0.453, allocations: 16 kB / 0.5051 GB, free: 13.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.152e-05/0.4531, allocations: 95.2 kB / 0.5052 GB, free: 13.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4531, allocations: 0 / 0.5052 GB, free: 13.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002864/0.456, allocations: 0.9747 MB / 0.5062 GB, free: 12.54 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.006749/0.4627, allocations: 3.286 MB / 0.5094 GB, free: 9.211 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.4642, allocations: 0.6082 MB / 0.51 GB, free: 8.602 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.4642, allocations: 0 / 0.51 GB, free: 8.602 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008074/0.465, allocations: 0.5201 MB / 0.5105 GB, free: 8.078 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000749/0.4658, allocations: 72.42 kB / 0.5105 GB, free: 8.008 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007239/0.473, allocations: 3.912 MB / 0.5144 GB, free: 3.941 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.4735, allocations: 0.8216 MB / 0.5152 GB, free: 3.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003689/0.4739, allocations: 141.9 kB / 0.5153 GB, free: 2.949 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002232/0.4741, allocations: 127.4 kB / 0.5154 GB, free: 2.824 MB / 446.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4741, allocations: 4 kB / 0.5154 GB, free: 2.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2671/0.7412, allocations: 40.6 MB / 0.5551 GB, free: 112.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.38/15.12, allocations: 12.97 kB / 0.5551 GB, free: 112.3 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_trunk_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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