Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",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: 98.2 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002132/0.0002133, allocations: 8 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09571/0.09594, allocations: 51.49 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2114/0.3074, allocations: 21.26 MB / 379.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.3217, allocations: 9.958 MB / 389.4 MB, free: 4.527 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00136/0.3231, allocations: 43.28 kB / 389.5 MB, free: 4.504 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.3243, allocations: 415.9 kB / 389.9 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004799/0.3291, allocations: 1.508 MB / 391.4 MB, free: 3.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006462/0.3356, allocations: 2.123 MB / 393.5 MB, free: 2.375 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003889/0.3395, allocations: 2.084 MB / 395.6 MB, free: 1.359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001583/0.3411, allocations: 0.9671 MB / 396.5 MB, free: 0.793 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002466/0.3436, allocations: 1.141 MB / 397.7 MB, free: 156 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001921/0.3455, allocations: 0.9608 MB / 398.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002491/0.3458, allocations: 79.34 kB / 398.7 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004643/0.3504, allocations: 1.8 MB / 400.5 MB, free: 14.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006613/0.3511, allocations: 471.9 kB / 401 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005852/0.3517, allocations: 281.4 kB / 401.3 MB, free: 14.28 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003711/0.3554, allocations: 2.286 MB / 403.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.3554, allocations: 0 / 403.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3554, allocations: 0 / 403.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.811e-05/0.3555, allocations: 0 / 403.5 MB, free: 12.89 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004542/0.36, allocations: 1.783 MB / 405.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.3601, allocations: 13.91 kB / 405.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002593/0.3603, allocations: 167.6 kB / 405.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004857/0.3608, allocations: 169.4 kB / 405.7 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/0.3624, allocations: 0.8659 MB / 406.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001877/0.3626, allocations: 240.3 kB / 406.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001748/0.3628, allocations: 100.5 kB / 406.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002699/0.3655, allocations: 1.775 MB / 408.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.3655, allocations: 3.906 kB / 408.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001446/0.3657, allocations: 49.45 kB / 408.7 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001444/0.3658, allocations: 102.4 kB / 408.8 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003025/0.3689, allocations: 1.776 MB / 410.6 MB, free: 7.695 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.01223/0.3811, allocations: 6.95 MB / 417.5 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002512/0.3836, allocations: 1.493 MB / 419 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008634/0.3845, allocations: 0.6568 MB / 419.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.59e-05/0.3846, allocations: 59.5 kB / 419.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.176e-06/0.3846, allocations: 0 / 419.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01934/0.4039, allocations: 6.647 MB / 426.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.4041, allocations: 175.5 kB / 426.5 MB, free: 7.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002693/0.4068, allocations: 1.088 MB / 427.6 MB, free: 6.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000297/0.4072, allocations: 53.7 kB / 427.7 MB, free: 5.957 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006392/0.4078, allocations: 0.5004 MB / 428.2 MB, free: 5.449 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007222/0.4086, allocations: 425.9 kB / 428.6 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.4088, allocations: 28 kB / 428.6 MB, free: 5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002544/0.4091, allocations: 361.9 kB / 429 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002273/0.4114, allocations: 0.8276 MB / 429.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00247/0.4139, allocations: 1.066 MB / 430.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002478/0.4164, allocations: 0.8808 MB / 431.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.441e-05/0.4164, allocations: 4 kB / 431.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.006558/0.423, allocations: 2.592 MB / 434.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009526/0.424, allocations: 1.836 MB / 436.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.424, allocations: 8 kB / 436.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003791/0.4278, allocations: 1.302 MB / 437.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.4289, allocations: 211.7 kB / 437.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007188/0.4361, allocations: 6.395 MB / 444.1 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/0.4379, allocations: 88 kB / 444.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003441/0.4383, allocations: 59.97 kB / 444.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.4383, allocations: 4 kB / 444.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004756/0.4431, allocations: 2.35 MB / 446.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.4431, allocations: 4 kB / 446.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002594/0.4457, allocations: 1.02 MB / 447.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.4469, allocations: 223.7 kB / 447.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006713/0.4536, allocations: 6.151 MB / 454 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001893/0.4556, allocations: 91.91 kB / 454.1 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004374/0.456, allocations: 59.97 kB / 454.1 MB, free: 10.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.00124/0.4573, allocations: 454 kB / 454.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005123/0.4578, allocations: 138.4 kB / 454.7 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005669/0.4635, allocations: 2.802 MB / 457.5 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/0.4635, allocations: 19.94 kB / 457.5 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.4635, allocations: 0 / 457.5 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.066e-05/0.4636, allocations: 11.97 kB / 457.6 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008587/0.4722, allocations: 4.53 MB / 462.1 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.4722, allocations: 3.938 kB / 462.1 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008158/0.473, allocations: 155.8 kB / 462.2 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003374/0.4764, allocations: 1.294 MB / 463.5 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002472/0.4767, allocations: 43.97 kB / 463.6 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007038/0.4837, allocations: 6.427 MB / 470 MB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4838, allocations: 0 / 470 MB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007993/0.4918, allocations: 3.937 MB / 473.9 MB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/0.4932, allocations: 447.1 kB / 474.4 MB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005254/0.4937, allocations: 28 kB / 474.4 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001509/0.4952, allocations: 99.83 kB / 474.5 MB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004098/0.4957, allocations: 145.1 kB / 474.6 MB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001967/0.4959, allocations: 55.91 kB / 474.7 MB, free: 5.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001355/0.4972, allocations: 0.7415 MB / 475.4 MB, free: 4.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.4973, allocations: 0 / 475.4 MB, free: 4.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004509/0.5018, allocations: 1.058 MB / 476.5 MB, free: 3.621 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.009878/0.5117, allocations: 5.142 MB / 481.6 MB, free: 14.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008316/0.52, allocations: 3.775 MB / 485.4 MB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/0.5201, allocations: 0 / 485.4 MB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003248/0.5234, allocations: 1.422 MB / 486.8 MB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003421/0.5268, allocations: 0.5758 MB / 487.4 MB, free: 8.598 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/0.5384, allocations: 7.757 MB / 495.2 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/0.5396, allocations: 1.288 MB / 496.5 MB, free: 15.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002444/0.542, allocations: 0.5804 MB / 497 MB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008698/0.5429, allocations: 0.4993 MB / 497.5 MB, free: 14.25 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.543, allocations: 0 / 497.5 MB, free: 14.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2833/0.8263, allocations: 55.02 MB / 0.5396 GB, free: 147.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/0.8265, allocations: 241.3 kB / 0.5398 GB, free: 147.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.478/4.305, allocations: 4 kB / 0.5398 GB, free: 147.3 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat