Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",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.001027/0.001027, allocations: 95.88 kB / 16.3 MB, free: 6.121 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.001033/0.001033, allocations: 181.8 kB / 17.2 MB, free: 6.004 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.361/1.361, allocations: 223.2 MB / 241.1 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000269/0.000269, allocations: 4 kB / 300.8 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1015, allocations: 50.4 MB / 351.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01422/0.1158, allocations: 13.86 MB / 365.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.189/0.3048, allocations: 6.196 MB / 371.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.3061, allocations: 30.72 kB / 371.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.3072, allocations: 289.3 kB / 371.6 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00292/0.3101, allocations: 0.8816 MB / 372.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004105/0.3142, allocations: 1.379 MB / 373.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002508/0.3167, allocations: 1.212 MB / 375.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009604/0.3177, allocations: 0.4947 MB / 375.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001301/0.319, allocations: 0.6145 MB / 376.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008158/0.3198, allocations: 0.5133 MB / 376.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.32, allocations: 41.25 kB / 376.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002792/0.3228, allocations: 1.095 MB / 377.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003607/0.3231, allocations: 246.2 kB / 378.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000244/0.3234, allocations: 179 kB / 378.2 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002172/0.3256, allocations: 1.284 MB / 379.5 MB, free: 9.293 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.3256, allocations: 0 / 379.5 MB, free: 9.293 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3256, allocations: 0 / 379.5 MB, free: 9.293 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.3256, allocations: 2.531 kB / 379.5 MB, free: 9.293 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.002468/0.3281, allocations: 1.116 MB / 380.6 MB, free: 8.598 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.3281, allocations: 8.75 kB / 380.6 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001621/0.3283, allocations: 102.8 kB / 380.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003118/0.3286, allocations: 101.8 kB / 380.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009633/0.3296, allocations: 0.5734 MB / 381.4 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.3297, allocations: 109.8 kB / 381.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.626e-05/0.3298, allocations: 54.84 kB / 381.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.3313, allocations: 0.8835 MB / 382.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.3313, allocations: 4 kB / 382.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.238e-05/0.3314, allocations: 25.52 kB / 382.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.268e-05/0.3315, allocations: 56.08 kB / 382.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.3328, allocations: 0.8386 MB / 383.4 MB, free: 8.074 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.005371/0.3382, allocations: 3.476 MB / 386.9 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009352/0.3391, allocations: 0.6583 MB / 387.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00269/0.3418, allocations: 2.053 MB / 389.6 MB, free: 4.965 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.3419, allocations: 43.62 kB / 389.6 MB, free: 4.926 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.084e-06/0.3419, allocations: 0 / 389.6 MB, free: 4.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006786/0.3487, allocations: 2.852 MB / 392.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.3487, allocations: 84.83 kB / 392.6 MB, free: 3.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000765/0.3495, allocations: 0.6722 MB / 393.2 MB, free: 3.648 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.379e-05/0.3496, allocations: 39.58 kB / 393.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.3498, allocations: 337.5 kB / 393.6 MB, free: 3.434 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.3499, allocations: 233.6 kB / 393.8 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.623e-05/0.35, allocations: 14.19 kB / 393.8 MB, free: 3.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3501, allocations: 389.3 kB / 394.2 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005651/0.3507, allocations: 356.8 kB / 394.6 MB, free: 2.879 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006005/0.3513, allocations: 0.5072 MB / 395.1 MB, free: 2.648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006485/0.3519, allocations: 411.2 kB / 395.5 MB, free: 2.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.3519, allocations: 1.375 kB / 395.5 MB, free: 2.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001827/0.3538, allocations: 1.148 MB / 396.6 MB, free: 2.363 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003025/0.3541, allocations: 1.662 MB / 398.3 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.3541, allocations: 6.25 kB / 398.3 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.3554, allocations: 444.5 kB / 398.7 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000653/0.356, allocations: 152.1 kB / 398.9 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001049/0.3571, allocations: 1.027 MB / 399.9 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007557/0.3579, allocations: 43.2 kB / 399.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.477e-05/0.358, allocations: 36.88 kB / 400 MB, free: 15.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.358, allocations: 6.5 kB / 400 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001669/0.3597, allocations: 0.9967 MB / 401 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3597, allocations: 6.219 kB / 401 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006603/0.3604, allocations: 318.3 kB / 401.3 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006203/0.361, allocations: 172.5 kB / 401.5 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009342/0.3619, allocations: 0.9018 MB / 402.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006946/0.3626, allocations: 46.92 kB / 402.4 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.77e-05/0.3627, allocations: 32.45 kB / 402.4 MB, free: 14.47 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.0005128/0.3632, allocations: 335.3 kB / 402.8 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.3634, allocations: 77.98 kB / 402.9 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001912/0.3653, allocations: 1.088 MB / 403.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.3653, allocations: 11.98 kB / 403.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.3653, allocations: 0 / 403.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.3654, allocations: 6.406 kB / 404 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003202/0.3686, allocations: 2.004 MB / 406 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3686, allocations: 0 / 406 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005819/0.3692, allocations: 117.6 kB / 406.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001216/0.3704, allocations: 453.4 kB / 406.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.609e-05/0.3705, allocations: 15.98 kB / 406.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.3716, allocations: 1.033 MB / 407.6 MB, free: 9.629 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3716, allocations: 0 / 407.6 MB, free: 9.629 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.374, allocations: 1.602 MB / 409.2 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000514/0.3745, allocations: 244.1 kB / 409.4 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.3746, allocations: 15.98 kB / 409.4 MB, free: 7.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005906/0.3752, allocations: 51.91 kB / 409.5 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.3754, allocations: 64.52 kB / 409.5 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.799e-05/0.3754, allocations: 23.98 kB / 409.6 MB, free: 7.598 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006193/0.3761, allocations: 475 kB / 410 MB, free: 7.137 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3761, allocations: 0 / 410 MB, free: 7.137 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001886/0.378, allocations: 0.574 MB / 410.6 MB, free: 6.562 MB / 318.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.003817/0.3818, allocations: 2.507 MB / 413.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002788/0.3846, allocations: 1.384 MB / 414.5 MB, free: 2.723 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.3846, allocations: 4 kB / 414.5 MB, free: 2.719 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008799/0.3855, allocations: 463.6 kB / 414.9 MB, free: 2.281 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001719/0.3872, allocations: 354 kB / 415.3 MB, free: 1.945 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00563/0.3929, allocations: 5.532 MB / 420.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005325/0.3934, allocations: 1.007 MB / 421.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001105/0.3945, allocations: 313.6 kB / 422.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003852/0.3949, allocations: 275.3 kB / 422.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3949, allocations: 0 / 422.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04875/0.4437, allocations: 28.32 MB / 450.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002717/0.444, allocations: 196.4 kB / 450.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.485/2.929, allocations: 0 / 450.9 MB, free: 14.49 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat