Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001157/0.001157, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001519/0.001519, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 60.47 kB / 307 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.107, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2089/0.3159, allocations: 28.85 MB / 386.4 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01963/0.3355, allocations: 15.04 MB / 401.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002575/0.3382, allocations: 42.91 kB / 401.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002173/0.3404, allocations: 0.584 MB / 402.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007287/0.3477, allocations: 2.3 MB / 404.4 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0125/0.3602, allocations: 3.73 MB / 408.1 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006176/0.3664, allocations: 4.155 MB / 412.3 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002487/0.3689, allocations: 1.163 MB / 413.4 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003693/0.3727, allocations: 1.545 MB / 415 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003525/0.3762, allocations: 1.661 MB / 416.6 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007404/0.377, allocations: 164 kB / 416.8 MB, free: 348 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007398/0.3844, allocations: 2.434 MB / 419.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001332/0.3858, allocations: 0.6233 MB / 419.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002033/0.3878, allocations: 0.8672 MB / 420.7 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007614/0.3955, allocations: 3.705 MB / 424.4 MB, free: 8.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3955, allocations: 0 / 424.4 MB, free: 8.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3955, allocations: 0 / 424.4 MB, free: 8.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.685e-05/0.3956, allocations: 0 / 424.4 MB, free: 8.688 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006359/0.4019, allocations: 2.205 MB / 426.6 MB, free: 6.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.402, allocations: 8.031 kB / 426.6 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003161/0.4023, allocations: 168.5 kB / 426.8 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006878/0.403, allocations: 174.1 kB / 427 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.4047, allocations: 1.003 MB / 428 MB, free: 5.031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003288/0.4051, allocations: 178.9 kB / 428.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/0.4053, allocations: 95.97 kB / 428.3 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003193/0.4085, allocations: 1.761 MB / 430 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.999e-05/0.4085, allocations: 3.906 kB / 430 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001512/0.4087, allocations: 47.95 kB / 430.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001562/0.4089, allocations: 109.9 kB / 430.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003089/0.412, allocations: 1.788 MB / 432 MB, free: 0.9727 MB / 334.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.01213/0.4241, allocations: 6.704 MB / 438.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00212/0.4262, allocations: 1.251 MB / 439.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/0.4275, allocations: 0.7612 MB / 440.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006633/0.4341, allocations: 4.275 MB / 445 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/0.4342, allocations: 43.56 kB / 445 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007703/0.435, allocations: 174.8 kB / 445.2 MB, free: 2.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 5.63e-06/0.435, allocations: 3.984 kB / 445.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.0194/0.4544, allocations: 5.699 MB / 450.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.937e-05/0.4545, allocations: 141.5 kB / 451 MB, free: 13.06 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001854/0.4564, allocations: 1.246 MB / 452.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001453/0.4565, allocations: 49.7 kB / 452.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005196/0.4571, allocations: 0.6206 MB / 452.9 MB, free: 11.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004088/0.4575, allocations: 386.5 kB / 453.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005439/0.458, allocations: 287.4 kB / 453.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002059/0.4583, allocations: 301.1 kB / 453.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001341/0.4596, allocations: 0.7231 MB / 454.6 MB, free: 9.438 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001682/0.4613, allocations: 1.068 MB / 455.7 MB, free: 8.227 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002878/0.4642, allocations: 1.743 MB / 457.4 MB, free: 6.352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.4642, allocations: 4 kB / 457.4 MB, free: 6.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004459/0.4687, allocations: 2.285 MB / 459.7 MB, free: 4.051 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.4688, allocations: 11.94 kB / 459.7 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.4688, allocations: 8 kB / 459.7 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007305/0.4761, allocations: 1.29 MB / 461 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.4775, allocations: 299.6 kB / 461.3 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002632/0.4801, allocations: 1.602 MB / 462.9 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.4817, allocations: 59.97 kB / 463 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002516/0.4819, allocations: 67.97 kB / 463 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002028/0.484, allocations: 0.9802 MB / 464 MB, free: 15.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001704/0.4857, allocations: 1.059 MB / 465.1 MB, free: 14.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002989/0.4887, allocations: 1.722 MB / 466.8 MB, free: 12.63 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.698e-06/0.4887, allocations: 4 kB / 466.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.00449/0.4932, allocations: 2.198 MB / 469 MB, free: 10.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.4933, allocations: 8 kB / 469 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/0.4933, allocations: 12 kB / 469 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006368/0.4997, allocations: 1.098 MB / 470.1 MB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/0.5011, allocations: 307.5 kB / 470.4 MB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002126/0.5032, allocations: 1.457 MB / 471.9 MB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.5046, allocations: 63.91 kB / 471.9 MB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001952/0.5048, allocations: 75.89 kB / 472 MB, free: 7.375 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0004304/0.5052, allocations: 267.9 kB / 472.3 MB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003609/0.5056, allocations: 142.3 kB / 472.4 MB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00434/0.5099, allocations: 2.084 MB / 474.5 MB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/0.51, allocations: 19.94 kB / 474.5 MB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.51, allocations: 3.938 kB / 474.5 MB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.51, allocations: 11.95 kB / 474.5 MB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005776/0.5158, allocations: 3.586 MB / 478.1 MB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.5158, allocations: 0 / 478.1 MB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009265/0.5167, allocations: 195.7 kB / 478.3 MB, free: 1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002449/0.5192, allocations: 0.8559 MB / 479.2 MB, free: 144 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001556/0.5194, allocations: 31.98 kB / 479.2 MB, free: 112 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002188/0.5216, allocations: 1.611 MB / 480.8 MB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/0.5216, allocations: 15.95 kB / 480.8 MB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004492/0.5261, allocations: 2.907 MB / 483.7 MB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006656/0.5268, allocations: 387.2 kB / 484.1 MB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002709/0.5271, allocations: 28 kB / 484.1 MB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.5282, allocations: 55.95 kB / 484.2 MB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/0.5284, allocations: 105.1 kB / 484.3 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/0.5286, allocations: 43.97 kB / 484.3 MB, free: 10.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0013/0.5299, allocations: 0.8441 MB / 485.2 MB, free: 10.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5299, allocations: 0 / 485.2 MB, free: 10.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003194/0.5331, allocations: 1.171 MB / 486.3 MB, free: 8.887 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007304/0.5404, allocations: 4.219 MB / 490.6 MB, free: 4.633 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008143/0.5486, allocations: 3.297 MB / 493.9 MB, free: 1.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.355e-06/0.5486, allocations: 3.938 kB / 493.9 MB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002023/0.5506, allocations: 0.8751 MB / 494.7 MB, free: 472 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003772/0.5544, allocations: 0.6684 MB / 495.4 MB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02713/0.5816, allocations: 15.15 MB / 0.4986 GB, free: 15.94 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001286/0.5829, allocations: 1.296 MB / 0.4999 GB, free: 14.61 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002558/0.5855, allocations: 0.5784 MB / 0.5004 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008367/0.5864, allocations: 0.5422 MB / 0.5009 GB, free: 13.48 MB / 430.1 MB Notification: Performance of SimCode: time 3.076e-06/0.5864, allocations: 0 / 0.5009 GB, free: 13.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2668/0.8532, allocations: 57.53 MB / 0.5571 GB, free: 141.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.9, allocations: 15.84 kB / 0.5571 GB, free: 141.9 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches