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.001104/0.001104, allocations: 105.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001218/0.001218, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 59.41 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09162/0.09289, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01757/0.1105, allocations: 13.02 MB / 370.6 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1657/0.2762, allocations: 11.53 MB / 382.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.2764, allocations: 0 / 382.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.2767, allocations: 76.45 kB / 382.2 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002567/0.277, allocations: 81.95 kB / 382.3 MB, free: 7.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01412/0.2911, allocations: 5.077 MB / 387.4 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003799/0.2915, allocations: 231.1 kB / 387.6 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.462e-05/0.2916, allocations: 18.98 kB / 387.6 MB, free: 6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004199/0.292, allocations: 188.4 kB / 387.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.2922, allocations: 73.81 kB / 387.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.63e-05/0.2922, allocations: 7.062 kB / 387.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01418/0.3064, allocations: 6.842 MB / 394.7 MB, free: 2.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.3065, allocations: 30.72 kB / 394.7 MB, free: 2.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.3067, allocations: 67.36 kB / 394.8 MB, free: 2.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008813/0.3155, allocations: 3.879 MB / 398.7 MB, free: 80 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3155, allocations: 0 / 398.7 MB, free: 80 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3156, allocations: 1.125 kB / 398.7 MB, free: 80 kB / 302.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.3156, allocations: 0 / 398.7 MB, free: 80 kB / 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.005451/0.321, allocations: 1.149 MB / 399.8 MB, free: 15.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3211, allocations: 10.31 kB / 399.8 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.88e-05/0.3212, allocations: 56.58 kB / 399.9 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004671/0.3216, allocations: 46.3 kB / 399.9 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.3219, allocations: 215.1 kB / 400.1 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.3219, allocations: 12.44 kB / 400.2 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.482e-05/0.322, allocations: 26.34 kB / 400.2 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.3233, allocations: 377.5 kB / 400.6 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.3233, allocations: 3.938 kB / 400.6 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.3233, allocations: 10.78 kB / 400.6 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.3234, allocations: 5.547 kB / 400.6 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.3248, allocations: 356.3 kB / 400.9 MB, free: 14.49 MB / 318.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.001437/0.3262, allocations: 1.195 MB / 402.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008348/0.3271, allocations: 279.6 kB / 402.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00029/0.3274, allocations: 108.8 kB / 402.5 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1049/0.4323, allocations: 52.6 MB / 455.1 MB, free: 2.863 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/0.4323, allocations: 42.56 kB / 455.1 MB, free: 2.812 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 3.135e-06/0.4324, allocations: 0 / 455.1 MB, free: 2.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006949/0.4393, allocations: 1.578 MB / 456.7 MB, free: 1.184 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.4394, allocations: 106.8 kB / 456.8 MB, free: 1.055 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.4395, allocations: 121.8 kB / 456.9 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.432e-05/0.4395, allocations: 33.64 kB / 457 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.827e-05/0.4396, allocations: 108.4 kB / 457.1 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.793e-05/0.4397, allocations: 110.3 kB / 457.2 MB, free: 0.668 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.4398, allocations: 73.67 kB / 457.3 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.4399, allocations: 326.8 kB / 457.6 MB, free: 268 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003878/0.4403, allocations: 131.9 kB / 457.7 MB, free: 136 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004337/0.4408, allocations: 202.5 kB / 457.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008182/0.4416, allocations: 350.5 kB / 458.2 MB, free: 15.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4416, allocations: 0 / 458.2 MB, free: 15.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00109/0.4427, allocations: 434 kB / 458.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.4428, allocations: 6.812 kB / 458.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.4428, allocations: 4 kB / 458.7 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002191/0.443, allocations: 33.22 kB / 458.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/0.4435, allocations: 87.88 kB / 458.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003509/0.4438, allocations: 0.5524 MB / 459.3 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002931/0.4441, allocations: 19.98 kB / 459.4 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.4442, allocations: 19.92 kB / 459.4 MB, free: 14.36 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.0001555/0.4443, allocations: 141.7 kB / 459.5 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.4445, allocations: 15.81 kB / 459.5 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002222/0.4467, allocations: 1.449 MB / 461 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.503e-05/0.4467, allocations: 23.95 kB / 461 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.4467, allocations: 0 / 461 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.4467, allocations: 0 / 461 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002955/0.4497, allocations: 1.979 MB / 463 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.024e-06/0.4497, allocations: 0 / 463 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004693/0.4502, allocations: 87.98 kB / 463.1 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003123/0.4505, allocations: 72.7 kB / 463.1 MB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.795e-05/0.4506, allocations: 12.48 kB / 463.2 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003743/0.451, allocations: 0.5953 MB / 463.8 MB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.451, allocations: 0 / 463.8 MB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.4532, allocations: 1.694 MB / 465.5 MB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.4534, allocations: 120.5 kB / 465.6 MB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.26e-05/0.4534, allocations: 8 kB / 465.6 MB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003825/0.4538, allocations: 27.95 kB / 465.6 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.193e-05/0.4539, allocations: 27.97 kB / 465.6 MB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/0.4539, allocations: 15.98 kB / 465.6 MB, free: 7.934 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.912e-05/0.454, allocations: 99.2 kB / 465.7 MB, free: 7.836 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.454, allocations: 0 / 465.7 MB, free: 7.836 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004032/0.458, allocations: 0.9644 MB / 466.7 MB, free: 6.871 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.007834/0.4659, allocations: 3.282 MB / 470 MB, free: 3.543 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001527/0.4674, allocations: 0.6199 MB / 470.6 MB, free: 2.918 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.4674, allocations: 0 / 470.6 MB, free: 2.918 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007798/0.4682, allocations: 0.5048 MB / 471.1 MB, free: 2.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007728/0.469, allocations: 80.3 kB / 471.2 MB, free: 2.336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007336/0.4764, allocations: 3.88 MB / 475.1 MB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.4767, allocations: 0.8178 MB / 475.9 MB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003889/0.4771, allocations: 141.3 kB / 476 MB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.4773, allocations: 131.3 kB / 476.2 MB, free: 13.19 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4773, allocations: 0 / 476.2 MB, free: 13.19 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07314/0.5505, allocations: 40.62 MB / 0.5047 GB, free: 4.613 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.47, allocations: 24.25 kB / 0.5047 GB, free: 4.594 MB / 430.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.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