Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007669/0.0007669, allocations: 91.77 kB / 16.31 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008621/0.0008622, allocations: 179.3 kB / 17.21 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.3 MB / 241.2 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003958/0.0003958, allocations: 4 kB / 300.9 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1256, allocations: 50.42 MB / 351.3 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2355/0.3611, allocations: 28.81 MB / 380.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01452/0.3757, allocations: 9.838 MB / 390 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001641/0.3773, allocations: 44.47 kB / 390 MB, free: 6.652 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001278/0.3786, allocations: 393.9 kB / 390.4 MB, free: 6.449 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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.005447/0.3841, allocations: 1.694 MB / 392.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007296/0.3914, allocations: 2.135 MB / 394.2 MB, free: 4.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005952/0.3974, allocations: 4.3 MB / 398.5 MB, free: 2.336 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001791/0.3992, allocations: 0.9544 MB / 399.5 MB, free: 1.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00304/0.4022, allocations: 1.318 MB / 400.8 MB, free: 1.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002486/0.4047, allocations: 1.359 MB / 402.2 MB, free: 316 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002584/0.405, allocations: 79.97 kB / 402.3 MB, free: 316 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004698/0.4097, allocations: 1.735 MB / 404 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006526/0.4104, allocations: 0.4887 MB / 404.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005651/0.4109, allocations: 283.1 kB / 404.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003762/0.4147, allocations: 2.305 MB / 407.1 MB, free: 13.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.4147, allocations: 0 / 407.1 MB, free: 13.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4147, allocations: 0 / 407.1 MB, free: 13.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.75e-05/0.4148, allocations: 0 / 407.1 MB, free: 13.54 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.004276/0.419, allocations: 1.782 MB / 408.8 MB, free: 12.26 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.4191, allocations: 15.7 kB / 408.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002494/0.4194, allocations: 169.1 kB / 409 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004365/0.4198, allocations: 168.5 kB / 409.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001402/0.4212, allocations: 0.8712 MB / 410.1 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002161/0.4214, allocations: 238.4 kB / 410.3 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001867/0.4216, allocations: 107.9 kB / 410.4 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002767/0.4244, allocations: 1.783 MB / 412.2 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.4245, allocations: 7.844 kB / 412.2 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/0.4246, allocations: 43.98 kB / 412.2 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001683/0.4248, allocations: 106 kB / 412.3 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002788/0.4276, allocations: 1.765 MB / 414.1 MB, free: 6.957 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.01076/0.4383, allocations: 6.974 MB / 421.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002387/0.4408, allocations: 1.49 MB / 422.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001269/0.442, allocations: 0.885 MB / 423.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008057/0.4429, allocations: 0.6568 MB / 424.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.4429, allocations: 51.56 kB / 424.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 2.865e-06/0.4429, allocations: 0 / 424.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01532/0.4582, allocations: 6.707 MB / 430.9 MB, free: 5.629 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.41e-05/0.4584, allocations: 171.5 kB / 431 MB, free: 5.422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/0.4599, allocations: 1.088 MB / 432.1 MB, free: 4.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001237/0.46, allocations: 53.64 kB / 432.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004036/0.4604, allocations: 0.5042 MB / 432.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003745/0.4608, allocations: 429.9 kB / 433.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.958e-05/0.4609, allocations: 28 kB / 433.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.461, allocations: 361.9 kB / 433.5 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.4623, allocations: 0.8276 MB / 434.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.4638, allocations: 1.053 MB / 435.4 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.4651, allocations: 0.8847 MB / 436.2 MB, free: 92 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.4652, allocations: 3.953 kB / 436.2 MB, free: 88 kB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004368/0.4695, allocations: 2.584 MB / 438.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001487/0.4697, allocations: 231.8 kB / 439.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.4697, allocations: 4 kB / 439.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003328/0.473, allocations: 1.289 MB / 440.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.4741, allocations: 219.6 kB / 440.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006343/0.4804, allocations: 6.353 MB / 446.9 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/0.482, allocations: 95.89 kB / 447 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/0.4822, allocations: 63.91 kB / 447.1 MB, free: 4.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.396e-06/0.4822, allocations: 0 / 447.1 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004139/0.4864, allocations: 2.334 MB / 449.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.4864, allocations: 11.94 kB / 449.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002354/0.4888, allocations: 1.027 MB / 450.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.4898, allocations: 231.6 kB / 450.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005874/0.4957, allocations: 6.096 MB / 456.8 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/0.4972, allocations: 99.84 kB / 456.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/0.4974, allocations: 55.97 kB / 456.9 MB, free: 10.59 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.000853/0.4982, allocations: 469.5 kB / 457.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002489/0.4985, allocations: 130.4 kB / 457.5 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004899/0.5034, allocations: 2.795 MB / 460.3 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.303e-05/0.5034, allocations: 19.98 kB / 460.3 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.5034, allocations: 4 kB / 460.3 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.5035, allocations: 7.938 kB / 460.3 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007179/0.5106, allocations: 4.522 MB / 464.9 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.5107, allocations: 4 kB / 464.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007831/0.5115, allocations: 155.8 kB / 465 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003157/0.5146, allocations: 1.295 MB / 466.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001457/0.5148, allocations: 35.97 kB / 466.3 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006882/0.5217, allocations: 6.384 MB / 472.7 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5217, allocations: 0 / 472.7 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006415/0.5281, allocations: 3.94 MB / 476.7 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.5293, allocations: 443.1 kB / 477.1 MB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000227/0.5295, allocations: 28 kB / 477.1 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009998/0.5305, allocations: 99.77 kB / 477.2 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003419/0.5309, allocations: 141.1 kB / 477.4 MB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/0.531, allocations: 51.97 kB / 477.4 MB, free: 5.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001021/0.5321, allocations: 0.7454 MB / 478.2 MB, free: 4.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5321, allocations: 4 kB / 478.2 MB, free: 4.816 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003075/0.5351, allocations: 1.046 MB / 479.2 MB, free: 3.77 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.008334/0.5435, allocations: 5.109 MB / 484.3 MB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007327/0.5508, allocations: 3.782 MB / 488.1 MB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.124e-06/0.5509, allocations: 0 / 488.1 MB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002808/0.5537, allocations: 1.426 MB / 489.5 MB, free: 9.336 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002858/0.5566, allocations: 0.5973 MB / 490.1 MB, free: 8.742 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0178/0.5744, allocations: 10.83 MB / 0.4892 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008645/0.5753, allocations: 1.268 MB / 0.4904 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001902/0.5772, allocations: 0.5762 MB / 0.491 GB, free: 11.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006807/0.5779, allocations: 0.507 MB / 0.4915 GB, free: 11.14 MB / 414.1 MB Notification: Performance of SimCode: time 9.71e-07/0.5779, allocations: 0 / 0.4915 GB, free: 11.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2788/0.8568, allocations: 55.68 MB / 0.5459 GB, free: 154.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/0.857, allocations: 264 kB / 0.5461 GB, free: 154.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.552/4.409, allocations: 1.438 kB / 0.5461 GB, free: 154.6 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat