Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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 3.2.3+maint.om/package.mo", uses=false) 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 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.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",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.0009598/0.0009652, allocations: 95.59 kB / 16.93 MB, free: 5.984 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.001367/0.001367, allocations: 181.4 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.578/1.578, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004959/0.0004963, allocations: 8 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1094, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.0238/0.1333, allocations: 21.21 MB / 349.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01675/0.1501, allocations: 9.935 MB / 359.6 MB, free: 4.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002047/0.1522, allocations: 43.62 kB / 359.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001907/0.1541, allocations: 413.8 kB / 360 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00651/0.1607, allocations: 1.503 MB / 361.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008024/0.1687, allocations: 2.117 MB / 363.6 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004422/0.1731, allocations: 2.071 MB / 365.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002552/0.1757, allocations: 0.9529 MB / 366.7 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003322/0.1791, allocations: 1.145 MB / 367.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002589/0.1817, allocations: 0.958 MB / 368.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006783/0.1824, allocations: 80 kB / 368.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005207/0.1876, allocations: 1.775 MB / 370.6 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.1887, allocations: 470.8 kB / 371.1 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000939/0.1897, allocations: 289 kB / 371.3 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00505/0.1948, allocations: 2.272 MB / 373.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1948, allocations: 0 / 373.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.1948, allocations: 0 / 373.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.336e-05/0.1949, allocations: 4 kB / 373.6 MB, free: 6.664 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.006248/0.2011, allocations: 1.776 MB / 375.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.122e-05/0.2012, allocations: 8.031 kB / 375.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007313/0.202, allocations: 180.6 kB / 375.6 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009408/0.2029, allocations: 162.3 kB / 375.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002352/0.2053, allocations: 0.8712 MB / 376.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003077/0.2056, allocations: 238.5 kB / 376.8 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003832/0.206, allocations: 95.98 kB / 376.9 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003855/0.2099, allocations: 1.775 MB / 378.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.857e-05/0.2099, allocations: 3.906 kB / 378.7 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001959/0.2101, allocations: 51.92 kB / 378.8 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001676/0.2103, allocations: 102 kB / 378.9 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2263/0.4366, allocations: 1.766 MB / 380.6 MB, free: 53.09 MB / 318.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.01483/0.4515, allocations: 6.948 MB / 387.6 MB, free: 49.96 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003012/0.4545, allocations: 1.5 MB / 389.1 MB, free: 49.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008083/0.4554, allocations: 0.6577 MB / 389.7 MB, free: 48.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.528e-05/0.4554, allocations: 49.56 kB / 389.8 MB, free: 48.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.356e-06/0.4554, allocations: 1.219 kB / 389.8 MB, free: 48.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01832/0.4738, allocations: 6.662 MB / 396.5 MB, free: 45.45 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.913e-05/0.4739, allocations: 171.4 kB / 396.6 MB, free: 45.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001872/0.4758, allocations: 1.089 MB / 397.7 MB, free: 44.65 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001735/0.476, allocations: 49.64 kB / 397.8 MB, free: 44.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003304/0.4763, allocations: 0.4982 MB / 398.3 MB, free: 44.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003614/0.4767, allocations: 435.8 kB / 398.7 MB, free: 43.8 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.674e-05/0.4768, allocations: 23.97 kB / 398.7 MB, free: 43.78 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.883e-05/0.4769, allocations: 361.8 kB / 399.1 MB, free: 43.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.478, allocations: 0.8259 MB / 399.9 MB, free: 43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.4793, allocations: 1.064 MB / 400.9 MB, free: 42.3 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.4806, allocations: 0.8828 MB / 401.8 MB, free: 41.84 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/0.4806, allocations: 3.75 kB / 401.8 MB, free: 41.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004221/0.4848, allocations: 2.596 MB / 404.4 MB, free: 40.42 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004219/0.4853, allocations: 1.832 MB / 406.3 MB, free: 38.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.4853, allocations: 4 kB / 406.3 MB, free: 38.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003049/0.4883, allocations: 1.296 MB / 407.6 MB, free: 37.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009323/0.4893, allocations: 215.6 kB / 407.8 MB, free: 36.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005276/0.4946, allocations: 6.389 MB / 414.2 MB, free: 30.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.4965, allocations: 99.8 kB / 414.3 MB, free: 30.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001588/0.4966, allocations: 61.97 kB / 414.3 MB, free: 30.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.4967, allocations: 8 kB / 414.3 MB, free: 30.08 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003613/0.5003, allocations: 2.338 MB / 416.7 MB, free: 27.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.5003, allocations: 4 kB / 416.7 MB, free: 27.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002088/0.5024, allocations: 1.027 MB / 417.7 MB, free: 26.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009279/0.5034, allocations: 223.6 kB / 417.9 MB, free: 26.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004672/0.5081, allocations: 6.155 MB / 424.1 MB, free: 19.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.5097, allocations: 91.84 kB / 424.2 MB, free: 19.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001517/0.5099, allocations: 59.97 kB / 424.2 MB, free: 19.83 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0008879/0.5108, allocations: 456.7 kB / 424.7 MB, free: 19.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000269/0.5111, allocations: 134.4 kB / 424.8 MB, free: 19.24 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004295/0.5154, allocations: 2.803 MB / 427.6 MB, free: 16.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.549e-05/0.5154, allocations: 16 kB / 427.6 MB, free: 16.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.5155, allocations: 4 kB / 427.6 MB, free: 16.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.778e-05/0.5155, allocations: 11.92 kB / 427.6 MB, free: 16.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006486/0.522, allocations: 4.53 MB / 432.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.522, allocations: 0 / 432.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007066/0.5227, allocations: 155.8 kB / 432.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002766/0.5255, allocations: 1.306 MB / 433.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000125/0.5256, allocations: 35.97 kB / 433.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004947/0.5306, allocations: 6.418 MB / 440.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.5306, allocations: 0.5625 kB / 440.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005788/0.5364, allocations: 3.95 MB / 444 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/0.5378, allocations: 447.1 kB / 444.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002273/0.538, allocations: 24 kB / 444.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.5391, allocations: 103.8 kB / 444.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003916/0.5395, allocations: 149.1 kB / 444.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/0.5396, allocations: 51.91 kB / 444.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001235/0.5409, allocations: 0.7454 MB / 445.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5409, allocations: 0 / 445.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003581/0.5445, allocations: 1.054 MB / 446.6 MB, free: 13.06 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.00871/0.5532, allocations: 5.111 MB / 451.7 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007708/0.5609, allocations: 3.781 MB / 455.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/0.561, allocations: 0 / 455.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003094/0.5641, allocations: 1.43 MB / 456.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003321/0.5674, allocations: 0.5702 MB / 457.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/0.578, allocations: 7.745 MB / 465.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009391/0.579, allocations: 1.288 MB / 466.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002105/0.5811, allocations: 0.5769 MB / 467.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007289/0.5819, allocations: 0.5109 MB / 467.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5819, allocations: 4 kB / 467.6 MB, free: 7.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09051/0.6724, allocations: 54.99 MB / 0.5103 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002032/0.6726, allocations: 254.2 kB / 0.5106 GB, free: 432 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.638/4.311, allocations: 7.938 kB / 0.5106 GB, free: 424 kB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat