Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001033/0.001033, allocations: 96.06 kB / 17 MB, free: 6.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 194.5 kB / 17.9 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002437/0.0002438, allocations: 4 kB / 306.8 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1088, allocations: 51.49 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2127/0.3215, allocations: 15.31 MB / 373.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009696/0.3313, allocations: 6.61 MB / 380.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009705/0.3323, allocations: 33.88 kB / 380.2 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009273/0.3332, allocations: 281.5 kB / 380.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003055/0.3363, allocations: 1.031 MB / 381.5 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004622/0.3409, allocations: 1.374 MB / 382.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004063/0.345, allocations: 2.623 MB / 385.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00101/0.346, allocations: 0.4969 MB / 386 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001461/0.3475, allocations: 0.7204 MB / 386.8 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001273/0.3488, allocations: 0.7688 MB / 387.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.3489, allocations: 41.91 kB / 387.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002757/0.3517, allocations: 1.069 MB / 388.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003562/0.352, allocations: 273.8 kB / 388.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002732/0.3523, allocations: 176 kB / 389.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001868/0.3542, allocations: 1.286 MB / 390.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3542, allocations: 0 / 390.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3542, allocations: 0 / 390.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.3542, allocations: 1.188 kB / 390.4 MB, free: 6.316 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002333/0.3566, allocations: 1.13 MB / 391.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.3566, allocations: 9.844 kB / 391.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001337/0.3568, allocations: 102.4 kB / 391.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002883/0.3571, allocations: 94.89 kB / 391.7 MB, free: 5.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008352/0.3579, allocations: 0.5773 MB / 392.3 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.835e-05/0.358, allocations: 108.2 kB / 392.4 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.3581, allocations: 52.98 kB / 392.4 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.3595, allocations: 0.8927 MB / 393.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.3596, allocations: 1.25 kB / 393.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.057e-05/0.3597, allocations: 25.62 kB / 393.4 MB, free: 4.195 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.422e-05/0.3597, allocations: 52.2 kB / 393.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.3611, allocations: 0.8421 MB / 394.2 MB, free: 3.758 MB / 302.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.004875/0.3659, allocations: 3.465 MB / 397.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009511/0.3669, allocations: 0.6655 MB / 398.4 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005217/0.3674, allocations: 366.8 kB / 398.7 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003099/0.3705, allocations: 2.048 MB / 400.8 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.738e-05/0.3706, allocations: 42.53 kB / 400.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 4.097e-06/0.3706, allocations: 0 / 400.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006772/0.3774, allocations: 2.86 MB / 403.7 MB, free: 13.03 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/0.3775, allocations: 87.7 kB / 403.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008873/0.3784, allocations: 0.675 MB / 404.4 MB, free: 12.53 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.782e-05/0.3785, allocations: 41.58 kB / 404.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/0.3787, allocations: 334 kB / 404.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.3789, allocations: 224.6 kB / 405 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.093e-05/0.379, allocations: 14.66 kB / 405 MB, free: 12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002919/0.3793, allocations: 392 kB / 405.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005817/0.3799, allocations: 352.3 kB / 405.8 MB, free: 11.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007855/0.3807, allocations: 0.5154 MB / 406.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008145/0.3815, allocations: 406.7 kB / 406.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3815, allocations: 0 / 406.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002202/0.3837, allocations: 1.149 MB / 407.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002021/0.3839, allocations: 207.7 kB / 408 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.384, allocations: 11.5 kB / 408 MB, free: 9.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001395/0.3854, allocations: 448.4 kB / 408.5 MB, free: 8.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006591/0.386, allocations: 155.8 kB / 408.6 MB, free: 8.828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.3873, allocations: 1.021 MB / 409.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007525/0.388, allocations: 55.81 kB / 409.7 MB, free: 7.727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.331e-05/0.3881, allocations: 35.97 kB / 409.7 MB, free: 7.691 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.3882, allocations: 4 kB / 409.8 MB, free: 7.688 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001766/0.3899, allocations: 0.9958 MB / 410.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.3899, allocations: 4 kB / 410.8 MB, free: 6.684 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006781/0.3906, allocations: 321.2 kB / 411.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006097/0.3913, allocations: 163.8 kB / 411.2 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009871/0.3923, allocations: 0.9035 MB / 412.1 MB, free: 5.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006506/0.3929, allocations: 43.83 kB / 412.2 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.86e-05/0.393, allocations: 35.98 kB / 412.2 MB, free: 5.199 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005164/0.3935, allocations: 336.8 kB / 412.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.3937, allocations: 83.02 kB / 412.6 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/0.3956, allocations: 1.088 MB / 413.7 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.3956, allocations: 11.94 kB / 413.7 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.3957, allocations: 0 / 413.7 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.3957, allocations: 3.984 kB / 413.7 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003629/0.3993, allocations: 2.003 MB / 415.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.3993, allocations: 0 / 415.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005497/0.3999, allocations: 115.9 kB / 415.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.401, allocations: 449.4 kB / 416.3 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.524e-05/0.4011, allocations: 20.86 kB / 416.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001181/0.4023, allocations: 1.03 MB / 417.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4023, allocations: 4 kB / 417.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002298/0.4046, allocations: 1.591 MB / 418.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004901/0.4051, allocations: 252 kB / 419.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.4053, allocations: 12 kB / 419.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005394/0.4058, allocations: 47.91 kB / 419.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.406, allocations: 60.56 kB / 419.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.819e-05/0.406, allocations: 35.92 kB / 419.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006048/0.4066, allocations: 475 kB / 419.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4066, allocations: 0 / 419.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001852/0.4085, allocations: 0.5857 MB / 420.4 MB, free: 12.9 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003734/0.4122, allocations: 2.5 MB / 422.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002755/0.415, allocations: 1.389 MB / 424.3 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.415, allocations: 0 / 424.3 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008566/0.4159, allocations: 459.5 kB / 424.7 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/0.4177, allocations: 366.2 kB / 425.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.4281, allocations: 5.578 MB / 430.6 MB, free: 2.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006446/0.4288, allocations: 0.9953 MB / 431.6 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001259/0.4301, allocations: 310.5 kB / 431.9 MB, free: 1.184 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004061/0.4305, allocations: 283.3 kB / 432.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4305, allocations: 0 / 432.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05277/0.4833, allocations: 28.85 MB / 461.1 MB, free: 4.305 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.4836, allocations: 212.1 kB / 461.3 MB, free: 4.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.498/2.982, allocations: 3.25 kB / 461.3 MB, free: 4.059 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat