Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001119/0.001119, allocations: 101.1 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001287, allocations: 200 kB / 17.89 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000207/0.000207, allocations: 4 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08625/0.08647, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1729/0.2594, allocations: 25.22 MB / 383.4 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0154/0.2748, allocations: 13.4 MB / 396.8 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.2762, allocations: 57.59 kB / 396.9 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001234/0.2775, allocations: 0.5263 MB / 397.4 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004531/0.282, allocations: 1.887 MB / 399.3 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007443/0.2895, allocations: 2.899 MB / 402.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003658/0.2932, allocations: 2.302 MB / 404.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00125/0.2944, allocations: 0.987 MB / 405.5 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001757/0.2962, allocations: 1.224 MB / 406.7 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001352/0.2975, allocations: 1.081 MB / 407.8 MB, free: 8.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001675/0.2977, allocations: 90.86 kB / 407.9 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003903/0.3016, allocations: 2.233 MB / 410.1 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004578/0.3021, allocations: 0.4897 MB / 410.6 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003401/0.3025, allocations: 313.7 kB / 410.9 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003141/0.3056, allocations: 2.626 MB / 413.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.3056, allocations: 0 / 413.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3056, allocations: 7.938 kB / 413.5 MB, free: 4.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.301e-05/0.3056, allocations: 0 / 413.5 MB, free: 4.809 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.0038/0.3095, allocations: 1.916 MB / 415.4 MB, free: 2.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.3095, allocations: 8.031 kB / 415.4 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001954/0.3097, allocations: 164.5 kB / 415.6 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003978/0.3101, allocations: 178.1 kB / 415.8 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.3115, allocations: 0.9645 MB / 416.7 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.3117, allocations: 187 kB / 416.9 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.3118, allocations: 95.97 kB / 417 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002609/0.3144, allocations: 1.734 MB / 418.8 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.3145, allocations: 4 kB / 418.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.3146, allocations: 47.91 kB / 418.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001332/0.3147, allocations: 117.9 kB / 418.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002417/0.3172, allocations: 1.776 MB / 420.7 MB, free: 13.44 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.009739/0.3269, allocations: 6.801 MB / 427.5 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/0.3285, allocations: 1.238 MB / 428.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004991/0.3335, allocations: 4.317 MB / 433.1 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.3335, allocations: 47.56 kB / 433.1 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00062/0.3342, allocations: 210.6 kB / 433.3 MB, free: 64 kB / 334.1 MB Notification: Performance of pre-optimization done (n=97): time 2.485e-06/0.3342, allocations: 0 / 433.3 MB, free: 64 kB / 334.1 MB Notification: Performance of matching and sorting (n=112): time 0.01606/0.3502, allocations: 5.716 MB / 439 MB, free: 10.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.3503, allocations: 141.5 kB / 439.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/0.3518, allocations: 1.246 MB / 440.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.3519, allocations: 49.7 kB / 440.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003865/0.3523, allocations: 0.6129 MB / 441.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002833/0.3526, allocations: 390.4 kB / 441.4 MB, free: 7.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.37e-05/0.3527, allocations: 27.94 kB / 441.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.3528, allocations: 369.9 kB / 441.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.3538, allocations: 0.6949 MB / 442.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001281/0.3551, allocations: 1.04 MB / 443.6 MB, free: 5.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.3563, allocations: 0.8105 MB / 444.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.3564, allocations: 7.953 kB / 444.4 MB, free: 4.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003577/0.3599, allocations: 2.233 MB / 446.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001514/0.3615, allocations: 3.772 MB / 450.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.582e-05/0.3615, allocations: 11.95 kB / 450.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006808/0.3683, allocations: 1.282 MB / 451.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.3698, allocations: 287.6 kB / 452 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002381/0.3722, allocations: 1.606 MB / 453.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.3737, allocations: 87.8 kB / 453.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002499/0.374, allocations: 73.02 kB / 453.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.374, allocations: 4 kB / 453.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003399/0.3774, allocations: 2.023 MB / 455.8 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/0.3774, allocations: 20.14 kB / 455.8 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005881/0.3833, allocations: 1.116 MB / 456.9 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/0.3845, allocations: 303.6 kB / 457.2 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/0.3863, allocations: 1.454 MB / 458.6 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.3876, allocations: 83.81 kB / 458.7 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/0.3877, allocations: 71.95 kB / 458.8 MB, free: 5.957 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0006827/0.3884, allocations: 460.6 kB / 459.2 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002861/0.3887, allocations: 146.2 kB / 459.4 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00379/0.3925, allocations: 2.088 MB / 461.5 MB, free: 3.258 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.3925, allocations: 12 kB / 461.5 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3925, allocations: 4 kB / 461.5 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.3926, allocations: 7.969 kB / 461.5 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006067/0.3986, allocations: 3.598 MB / 465.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.3987, allocations: 0 / 465.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009024/0.3996, allocations: 191.8 kB / 465.3 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003686/0.4033, allocations: 0.9924 MB / 466.3 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.4034, allocations: 35.92 kB / 466.3 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002157/0.4056, allocations: 1.603 MB / 467.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4056, allocations: 0 / 467.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004658/0.4102, allocations: 2.911 MB / 470.8 MB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009826/0.4112, allocations: 411.1 kB / 471.2 MB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003055/0.4115, allocations: 24 kB / 471.3 MB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.4126, allocations: 91.78 kB / 471.3 MB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.4129, allocations: 101.1 kB / 471.4 MB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.413, allocations: 51.91 kB / 471.5 MB, free: 9.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001352/0.4143, allocations: 0.8324 MB / 472.3 MB, free: 8.277 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4144, allocations: 0 / 472.3 MB, free: 8.277 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003195/0.4176, allocations: 1.167 MB / 473.5 MB, free: 7.109 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.007141/0.4247, allocations: 4.184 MB / 477.7 MB, free: 2.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006214/0.4309, allocations: 2.77 MB / 480.4 MB, free: 132 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.431, allocations: 8.125 kB / 480.5 MB, free: 124 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0018/0.4328, allocations: 0.8634 MB / 481.3 MB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003005/0.4358, allocations: 0.6104 MB / 481.9 MB, free: 14.65 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009317/0.4451, allocations: 11.22 MB / 493.1 MB, free: 3.164 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000814/0.446, allocations: 1.319 MB / 494.5 MB, free: 1.816 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001924/0.4479, allocations: 0.5862 MB / 495 MB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007148/0.4486, allocations: 0.5383 MB / 495.6 MB, free: 0.6836 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4486, allocations: 0 / 495.6 MB, free: 0.6836 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3122/0.7608, allocations: 53.42 MB / 0.5361 GB, free: 150.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001404/0.761, allocations: 200.6 kB / 0.5363 GB, free: 149.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.491/4.252, allocations: 0 / 0.5363 GB, free: 149.9 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat