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.0009029/0.0009029, allocations: 100.8 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001243, allocations: 202.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002496/0.0002498, allocations: 8 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1135, allocations: 51.49 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2497/0.3633, allocations: 13.91 MB / 372.1 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01228/0.3757, allocations: 6.206 MB / 378.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001198/0.3769, allocations: 31.16 kB / 378.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.3779, allocations: 291.8 kB / 378.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003521/0.3815, allocations: 0.8883 MB / 379.5 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005394/0.3869, allocations: 1.376 MB / 380.9 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003667/0.3906, allocations: 1.221 MB / 382.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001282/0.3919, allocations: 0.4972 MB / 382.6 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001612/0.3935, allocations: 0.6153 MB / 383.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.3945, allocations: 0.5193 MB / 383.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001392/0.3947, allocations: 42.22 kB / 383.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003677/0.3984, allocations: 1.104 MB / 384.9 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003962/0.3988, allocations: 250.1 kB / 385.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003549/0.3991, allocations: 183.6 kB / 385.3 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002564/0.4017, allocations: 1.285 MB / 386.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.4017, allocations: 7.938 kB / 386.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4017, allocations: 0 / 386.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.4018, allocations: 0 / 386.6 MB, free: 8.254 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.00283/0.4046, allocations: 1.117 MB / 387.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.4047, allocations: 15.66 kB / 387.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001564/0.4048, allocations: 100.2 kB / 387.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003344/0.4052, allocations: 92.03 kB / 387.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.4062, allocations: 0.5753 MB / 388.5 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.4063, allocations: 110.4 kB / 388.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.4064, allocations: 57.41 kB / 388.7 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.408, allocations: 0.8799 MB / 389.5 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.408, allocations: 1.094 kB / 389.5 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-05/0.4081, allocations: 26.52 kB / 389.6 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.015e-05/0.4082, allocations: 60.2 kB / 389.6 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/0.4095, allocations: 0.8453 MB / 390.5 MB, free: 6.008 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.005614/0.4152, allocations: 3.476 MB / 394 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009955/0.4162, allocations: 0.658 MB / 394.6 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00285/0.419, allocations: 2.057 MB / 396.7 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.4191, allocations: 38.25 kB / 396.7 MB, free: 1.117 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.083e-06/0.4191, allocations: 4 kB / 396.7 MB, free: 1.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.007183/0.4263, allocations: 2.854 MB / 399.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.063e-05/0.4264, allocations: 84.92 kB / 399.6 MB, free: 15.37 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.4274, allocations: 0.6748 MB / 400.3 MB, free: 14.97 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.858e-05/0.4275, allocations: 36.92 kB / 400.4 MB, free: 14.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002844/0.4278, allocations: 336.6 kB / 400.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002157/0.428, allocations: 222.8 kB / 400.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.893e-05/0.4281, allocations: 20.94 kB / 400.9 MB, free: 14.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.4283, allocations: 384.2 kB / 401.3 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005732/0.4289, allocations: 359 kB / 401.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006888/0.4296, allocations: 0.5084 MB / 402.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006525/0.4302, allocations: 406.2 kB / 402.6 MB, free: 13.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4302, allocations: 0 / 402.6 MB, free: 13.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001977/0.4322, allocations: 1.148 MB / 403.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007841/0.433, allocations: 1.661 MB / 405.4 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.433, allocations: 4 kB / 405.4 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001281/0.4343, allocations: 454.9 kB / 405.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006546/0.435, allocations: 162.2 kB / 406 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.4363, allocations: 1.014 MB / 407 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008789/0.4371, allocations: 48.98 kB / 407 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.8e-05/0.4373, allocations: 31.02 kB / 407.1 MB, free: 9.867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.4373, allocations: 5.406 kB / 407.1 MB, free: 9.867 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001867/0.4391, allocations: 0.9989 MB / 408.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.4392, allocations: 4 kB / 408.1 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007134/0.4399, allocations: 321 kB / 408.4 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006161/0.4405, allocations: 164.7 kB / 408.5 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/0.4416, allocations: 0.9073 MB / 409.4 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000744/0.4423, allocations: 47.86 kB / 409.5 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.161e-05/0.4424, allocations: 35.98 kB / 409.5 MB, free: 7.48 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.0005777/0.443, allocations: 328.9 kB / 409.9 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.4431, allocations: 83.02 kB / 409.9 MB, free: 7.066 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00198/0.4451, allocations: 1.088 MB / 411 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.4452, allocations: 8 kB / 411 MB, free: 5.957 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.4452, allocations: 0 / 411 MB, free: 5.957 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.4452, allocations: 3.984 kB / 411 MB, free: 5.953 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003268/0.4485, allocations: 2.009 MB / 413 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.4485, allocations: 0 / 413 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005585/0.449, allocations: 119.8 kB / 413.2 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/0.4502, allocations: 453.3 kB / 413.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.904e-05/0.4503, allocations: 23.98 kB / 413.6 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/0.4515, allocations: 1.023 MB / 414.6 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4515, allocations: 0 / 414.6 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002393/0.4539, allocations: 1.588 MB / 416.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005502/0.4545, allocations: 263.9 kB / 416.5 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.4546, allocations: 16 kB / 416.5 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005544/0.4551, allocations: 43.91 kB / 416.6 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.4553, allocations: 56.56 kB / 416.6 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.878e-05/0.4554, allocations: 31.98 kB / 416.6 MB, free: 244 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006253/0.456, allocations: 475 kB / 417.1 MB, free: 15.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.456, allocations: 0 / 417.1 MB, free: 15.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001942/0.458, allocations: 0.5818 MB / 417.7 MB, free: 15.19 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.004214/0.4622, allocations: 2.51 MB / 420.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003098/0.4653, allocations: 1.378 MB / 421.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.4653, allocations: 192 / 421.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009295/0.4663, allocations: 463.5 kB / 422 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/0.4682, allocations: 357.9 kB / 422.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005875/0.4741, allocations: 5.531 MB / 427.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005686/0.4747, allocations: 1.011 MB / 428.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001151/0.4758, allocations: 314.5 kB / 429.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003803/0.4762, allocations: 279.3 kB / 429.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4762, allocations: 0 / 429.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05369/0.5299, allocations: 28.41 MB / 457.9 MB, free: 7.074 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000358/0.5303, allocations: 212.2 kB / 458.1 MB, free: 6.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.456/2.987, allocations: 0 / 458.1 MB, free: 6.82 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