Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001596/0.001602, allocations: 187.1 kB / 16.4 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.078/2.078, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001167/0.001167, allocations: 78.98 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004005/0.0004006, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3412, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.03/1.371, allocations: 321 MB / 0.6793 GB, free: 107.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/1.371, allocations: 89.31 kB / 0.6794 GB, free: 107.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.462/1.833, allocations: 132 MB / 0.8083 GB, free: 0.9258 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.795e-06/1.833, allocations: 4 kB / 0.8083 GB, free: 0.9219 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.649e-05/1.833, allocations: 24.09 kB / 0.8083 GB, free: 0.8984 MB / 426.7 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.2878/2.121, allocations: 1.179 MB / 0.8095 GB, free: 97.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/2.121, allocations: 7.938 kB / 0.8095 GB, free: 97.02 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000522/2.122, allocations: 102.3 kB / 0.8096 GB, free: 96.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005238/2.122, allocations: 102.2 kB / 0.8097 GB, free: 96.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002173/2.125, allocations: 0.6531 MB / 0.8103 GB, free: 96.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/2.125, allocations: 107.3 kB / 0.8104 GB, free: 96.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001628/2.125, allocations: 56.7 kB / 0.8105 GB, free: 96.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002239/2.127, allocations: 0.8903 MB / 0.8113 GB, free: 96.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/2.127, allocations: 3.531 kB / 0.8113 GB, free: 96.54 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/2.127, allocations: 25.69 kB / 0.8114 GB, free: 96.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001543/2.128, allocations: 49.81 kB / 0.8114 GB, free: 96.54 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002206/2.13, allocations: 0.8304 MB / 0.8122 GB, free: 96.53 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008974/2.139, allocations: 3.286 MB / 0.8154 GB, free: 95.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/2.14, allocations: 0.656 MB / 0.8161 GB, free: 95.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004632/2.145, allocations: 2.058 MB / 0.8181 GB, free: 94.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/2.145, allocations: 42.31 kB / 0.8181 GB, free: 94.19 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 3.858e-06/2.145, allocations: 0 / 0.8181 GB, free: 94.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.01204/2.157, allocations: 2.826 MB / 0.8209 GB, free: 93.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/2.157, allocations: 85.14 kB / 0.8209 GB, free: 93.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/2.159, allocations: 0.6071 MB / 0.8215 GB, free: 93.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001665/2.159, allocations: 43.3 kB / 0.8216 GB, free: 93.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002271/2.159, allocations: 356.5 kB / 0.8219 GB, free: 93.23 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002707/2.159, allocations: 229.8 kB / 0.8221 GB, free: 93.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.982e-05/2.159, allocations: 13.72 kB / 0.8222 GB, free: 93.11 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.087e-05/2.16, allocations: 343.7 kB / 0.8225 GB, free: 92.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/2.161, allocations: 353.5 kB / 0.8228 GB, free: 92.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/2.162, allocations: 0.5037 MB / 0.8233 GB, free: 92.64 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/2.163, allocations: 408.6 kB / 0.8237 GB, free: 92.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/2.163, allocations: 2.125 kB / 0.8237 GB, free: 92.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003328/2.166, allocations: 1.087 MB / 0.8248 GB, free: 92.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004364/2.167, allocations: 1.576 MB / 0.8263 GB, free: 90.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/2.167, allocations: 4.5 kB / 0.8263 GB, free: 90.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00235/2.169, allocations: 447.1 kB / 0.8267 GB, free: 90.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/2.171, allocations: 155 kB / 0.8269 GB, free: 90.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001943/2.173, allocations: 1.023 MB / 0.8279 GB, free: 90.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001404/2.174, allocations: 43.59 kB / 0.8279 GB, free: 90.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/2.174, allocations: 33.92 kB / 0.828 GB, free: 90.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/2.174, allocations: 5.656 kB / 0.828 GB, free: 90.41 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002788/2.177, allocations: 0.9971 MB / 0.8289 GB, free: 90.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/2.177, allocations: 6.125 kB / 0.8289 GB, free: 90.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/2.178, allocations: 311.4 kB / 0.8292 GB, free: 90.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/2.179, allocations: 162.8 kB / 0.8294 GB, free: 90.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/2.181, allocations: 0.8898 MB / 0.8303 GB, free: 89.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000917/2.182, allocations: 50.09 kB / 0.8303 GB, free: 89.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/2.182, allocations: 33.39 kB / 0.8303 GB, free: 89.85 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (83): * Single equations (assignments): 82 * 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.0006856/2.183, allocations: 333 kB / 0.8307 GB, free: 89.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002776/2.183, allocations: 79.61 kB / 0.8307 GB, free: 89.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00299/2.186, allocations: 1.091 MB / 0.8318 GB, free: 89.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/2.186, allocations: 10.25 kB / 0.8318 GB, free: 89.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/2.186, allocations: 0 / 0.8318 GB, free: 89.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/2.186, allocations: 3.797 kB / 0.8318 GB, free: 89.54 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004687/2.191, allocations: 1.995 MB / 0.8338 GB, free: 89.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/2.191, allocations: 6.062 kB / 0.8338 GB, free: 89.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/2.192, allocations: 123.3 kB / 0.8339 GB, free: 89.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001911/2.194, allocations: 449.4 kB / 0.8343 GB, free: 89.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/2.194, allocations: 20.64 kB / 0.8343 GB, free: 89.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001651/2.195, allocations: 1.034 MB / 0.8353 GB, free: 88.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/2.196, allocations: 0 / 0.8353 GB, free: 88.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003824/2.199, allocations: 1.594 MB / 0.8369 GB, free: 88.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007585/2.2, allocations: 254.6 kB / 0.8371 GB, free: 88.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001874/2.2, allocations: 12.47 kB / 0.8372 GB, free: 88.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/2.201, allocations: 56.66 kB / 0.8372 GB, free: 88.33 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/2.202, allocations: 58.48 kB / 0.8373 GB, free: 88.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/2.202, allocations: 27.56 kB / 0.8373 GB, free: 88.33 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000829/2.203, allocations: 477.8 kB / 0.8377 GB, free: 88.24 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.02e-07/2.203, allocations: 0 / 0.8377 GB, free: 88.24 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002507/2.205, allocations: 0.6349 MB / 0.8384 GB, free: 88.24 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * 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.005596/2.211, allocations: 2.639 MB / 0.8409 GB, free: 87.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004533/2.215, allocations: 1.379 MB / 0.8423 GB, free: 87.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.717e-06/2.215, allocations: 0 / 0.8423 GB, free: 87.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/2.217, allocations: 462.6 kB / 0.8427 GB, free: 87.47 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/2.22, allocations: 352.5 kB / 0.8431 GB, free: 87.47 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007348/2.227, allocations: 5.476 MB / 0.8484 GB, free: 83.68 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005522/2.228, allocations: 1.005 MB / 0.8494 GB, free: 82.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007641/2.229, allocations: 294.6 kB / 0.8497 GB, free: 82.97 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/2.229, allocations: 0 / 0.8497 GB, free: 82.97 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.155/5.383, allocations: 22.38 MB / 0.8715 GB, free: 81.85 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat