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.0008055/0.0008054, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001134/0.001134, allocations: 192.3 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002598/0.0002599, allocations: 8 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09416/0.09444, allocations: 51.49 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.215/0.3095, allocations: 28.88 MB / 387.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01446/0.324, allocations: 9.854 MB / 397 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001647/0.3257, allocations: 44.75 kB / 397.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001369/0.327, allocations: 399.4 kB / 397.5 MB, free: 15.14 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.00663/0.3337, allocations: 1.713 MB / 399.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007275/0.341, allocations: 2.117 MB / 401.3 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006168/0.3472, allocations: 4.324 MB / 405.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001994/0.3492, allocations: 0.9584 MB / 406.6 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003246/0.3525, allocations: 1.332 MB / 407.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002621/0.3551, allocations: 1.352 MB / 409.3 MB, free: 8.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003025/0.3554, allocations: 79.25 kB / 409.3 MB, free: 8.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004086/0.3595, allocations: 1.755 MB / 411.1 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007134/0.3602, allocations: 0.4929 MB / 411.6 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005988/0.3609, allocations: 284.1 kB / 411.9 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003513/0.3644, allocations: 2.305 MB / 414.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.3644, allocations: 8 kB / 414.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3644, allocations: 0 / 414.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.063e-05/0.3644, allocations: 0 / 414.2 MB, free: 4.828 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.004385/0.3688, allocations: 1.784 MB / 416 MB, free: 2.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3689, allocations: 12.03 kB / 416 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002891/0.3692, allocations: 168.7 kB / 416.1 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004518/0.3696, allocations: 170.1 kB / 416.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001497/0.3711, allocations: 0.8674 MB / 417.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.3714, allocations: 238.5 kB / 417.4 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/0.3715, allocations: 103.9 kB / 417.5 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002947/0.3745, allocations: 1.783 MB / 419.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.3745, allocations: 3.906 kB / 419.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001585/0.3747, allocations: 47.97 kB / 419.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001432/0.3749, allocations: 110 kB / 419.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003059/0.3779, allocations: 1.768 MB / 421.2 MB, free: 13.58 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.0119/0.3898, allocations: 6.945 MB / 428.2 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002673/0.3925, allocations: 1.501 MB / 429.7 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00138/0.394, allocations: 0.8821 MB / 430.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008482/0.3948, allocations: 0.6607 MB / 431.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.3949, allocations: 43.56 kB / 431.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.025e-06/0.3949, allocations: 0 / 431.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01577/0.4107, allocations: 6.711 MB / 438 MB, free: 12.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.4108, allocations: 171.5 kB / 438.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001515/0.4123, allocations: 1.088 MB / 439.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000142/0.4125, allocations: 53.64 kB / 439.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004022/0.4129, allocations: 0.4964 MB / 439.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004026/0.4133, allocations: 437.9 kB / 440.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.4134, allocations: 24 kB / 440.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.4136, allocations: 361.9 kB / 440.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.4149, allocations: 0.8275 MB / 441.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.4164, allocations: 1.058 MB / 442.5 MB, free: 7.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.4178, allocations: 0.8808 MB / 443.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.4178, allocations: 4 kB / 443.3 MB, free: 6.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004655/0.4225, allocations: 2.588 MB / 445.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002284/0.4228, allocations: 235.8 kB / 446.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/0.4228, allocations: 12 kB / 446.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003379/0.4262, allocations: 1.287 MB / 447.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.4272, allocations: 215.6 kB / 447.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006558/0.4338, allocations: 6.36 MB / 454 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.4354, allocations: 95.94 kB / 454.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/0.4356, allocations: 55.97 kB / 454.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.438e-06/0.4356, allocations: 4 kB / 454.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004187/0.4398, allocations: 2.346 MB / 456.5 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.4398, allocations: 8 kB / 456.5 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002375/0.4422, allocations: 1.011 MB / 457.5 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.4433, allocations: 235.6 kB / 457.8 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00641/0.4497, allocations: 6.092 MB / 463.9 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/0.4513, allocations: 95.84 kB / 464 MB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001475/0.4514, allocations: 63.91 kB / 464 MB, free: 1.219 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.0008824/0.4523, allocations: 458 kB / 464.5 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002323/0.4526, allocations: 130.4 kB / 464.6 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004942/0.4575, allocations: 2.806 MB / 467.4 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.715e-05/0.4576, allocations: 15.94 kB / 467.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.4576, allocations: 4 kB / 467.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.4576, allocations: 7.969 kB / 467.4 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007136/0.4647, allocations: 4.526 MB / 472 MB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.4648, allocations: 0 / 472 MB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008047/0.4656, allocations: 151.8 kB / 472.1 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003299/0.4689, allocations: 1.294 MB / 473.4 MB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001562/0.4691, allocations: 39.98 kB / 473.4 MB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006423/0.4755, allocations: 6.386 MB / 479.8 MB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4755, allocations: 4.062 kB / 479.8 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007157/0.4827, allocations: 3.932 MB / 483.8 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009531/0.4837, allocations: 439.1 kB / 484.2 MB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002008/0.4839, allocations: 24 kB / 484.2 MB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009996/0.4849, allocations: 107.8 kB / 484.3 MB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003281/0.4853, allocations: 153 kB / 484.5 MB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.4854, allocations: 55.97 kB / 484.5 MB, free: 12.21 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001035/0.4864, allocations: 0.7415 MB / 485.3 MB, free: 11.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4864, allocations: 0 / 485.3 MB, free: 11.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002998/0.4895, allocations: 1.062 MB / 486.3 MB, free: 10.39 MB / 398.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.00829/0.4978, allocations: 5.107 MB / 491.4 MB, free: 5.246 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007276/0.5051, allocations: 3.774 MB / 495.2 MB, free: 1.418 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.5051, allocations: 0 / 495.2 MB, free: 1.418 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002864/0.508, allocations: 1.427 MB / 496.6 MB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00294/0.511, allocations: 0.5988 MB / 497.2 MB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01967/0.5306, allocations: 10.85 MB / 0.4962 GB, free: 4.141 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008828/0.5316, allocations: 1.264 MB / 0.4974 GB, free: 2.848 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002051/0.5336, allocations: 0.5761 MB / 0.498 GB, free: 2.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007349/0.5344, allocations: 0.4993 MB / 0.4985 GB, free: 1.77 MB / 414.1 MB Notification: Performance of SimCode: time 1.402e-06/0.5344, allocations: 3.938 kB / 0.4985 GB, free: 1.766 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2944/0.8288, allocations: 55.71 MB / 0.5529 GB, free: 144.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/0.829, allocations: 253.2 kB / 0.5531 GB, free: 144.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.5/4.329, allocations: 0 / 0.5531 GB, free: 144.2 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