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.0007184/0.0007185, allocations: 84.06 kB / 16.31 MB, free: 6.449 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.0008149/0.000815, allocations: 180.6 kB / 17.21 MB, free: 6.32 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.3 MB / 241.2 MB, free: 5.262 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002631/0.0002632, allocations: 9.438 kB / 300.9 MB, free: 5.602 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.113, allocations: 50.42 MB / 351.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01476/0.1278, allocations: 15.26 MB / 366.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00904/0.1369, allocations: 6.598 MB / 373.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008783/0.1378, allocations: 31.69 kB / 373.2 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008314/0.1386, allocations: 282.3 kB / 373.5 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002501/0.1411, allocations: 1.018 MB / 374.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00362/0.1448, allocations: 1.387 MB / 375.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003165/0.148, allocations: 2.612 MB / 378.5 MB, free: 104 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001082/0.149, allocations: 0.4899 MB / 379 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00211/0.1512, allocations: 0.7123 MB / 379.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001646/0.1528, allocations: 0.7708 MB / 380.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.153, allocations: 44 kB / 380.5 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002501/0.1555, allocations: 1.045 MB / 381.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003403/0.1558, allocations: 267.2 kB / 381.8 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002843/0.1561, allocations: 181.3 kB / 382 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001663/0.1578, allocations: 1.274 MB / 383.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1578, allocations: 0 / 383.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1578, allocations: 0 / 383.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.749e-06/0.1578, allocations: 0 / 383.3 MB, free: 11.3 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002169/0.16, allocations: 1.118 MB / 384.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.1601, allocations: 8.031 kB / 384.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001399/0.1602, allocations: 106.5 kB / 384.5 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002629/0.1605, allocations: 91.05 kB / 384.6 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008162/0.1613, allocations: 0.574 MB / 385.2 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.1614, allocations: 116.6 kB / 385.3 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.924e-05/0.1615, allocations: 55.98 kB / 385.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.1629, allocations: 0.8846 MB / 386.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.434e-05/0.1629, allocations: 4 kB / 386.2 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.98e-05/0.163, allocations: 31.91 kB / 386.3 MB, free: 8.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.406e-05/0.1631, allocations: 53.28 kB / 386.3 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.1644, allocations: 0.8365 MB / 387.2 MB, free: 7.285 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.005222/0.1696, allocations: 3.462 MB / 390.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009921/0.1706, allocations: 0.6646 MB / 391.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005323/0.1712, allocations: 366.3 kB / 391.6 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002633/0.1738, allocations: 2.059 MB / 393.7 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.1739, allocations: 39.12 kB / 393.7 MB, free: 304 kB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.913e-06/0.1739, allocations: 3.938 kB / 393.7 MB, free: 300 kB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006377/0.1802, allocations: 2.856 MB / 396.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.1803, allocations: 85.67 kB / 396.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008031/0.1811, allocations: 0.6758 MB / 397.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.775e-05/0.1812, allocations: 45.7 kB / 397.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.1814, allocations: 328.5 kB / 397.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.1816, allocations: 228.7 kB / 397.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.838e-05/0.1817, allocations: 19.94 kB / 398 MB, free: 11.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.1819, allocations: 386.8 kB / 398.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.1824, allocations: 353.8 kB / 398.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006816/0.1831, allocations: 0.5152 MB / 399.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006254/0.1838, allocations: 407 kB / 399.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.1838, allocations: 4 kB / 399.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001824/0.1856, allocations: 1.138 MB / 400.7 MB, free: 9.113 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000145/0.1858, allocations: 225.3 kB / 401 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.1858, allocations: 4 kB / 401 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/0.187, allocations: 436.5 kB / 401.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006305/0.1876, allocations: 171.7 kB / 401.6 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/0.1888, allocations: 1.013 MB / 402.6 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005452/0.1894, allocations: 43.92 kB / 402.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.186e-05/0.1895, allocations: 39.94 kB / 402.6 MB, free: 7.109 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.186e-06/0.1895, allocations: 4 kB / 402.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00166/0.1911, allocations: 1.004 MB / 403.7 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.1912, allocations: 4 kB / 403.7 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006558/0.1918, allocations: 312.8 kB / 404 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006107/0.1924, allocations: 167.7 kB / 404.1 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009396/0.1934, allocations: 0.9034 MB / 405 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000535/0.1939, allocations: 51.95 kB / 405.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.689e-05/0.194, allocations: 27.98 kB / 405.1 MB, free: 4.613 MB / 334.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.0004978/0.1945, allocations: 332.8 kB / 405.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.1947, allocations: 79 kB / 405.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/0.1966, allocations: 1.091 MB / 406.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.1966, allocations: 4 kB / 406.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.1966, allocations: 7.984 kB / 406.6 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.1967, allocations: 0 / 406.6 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00293/0.1996, allocations: 2.001 MB / 408.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.1996, allocations: 7.953 kB / 408.6 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005616/0.2002, allocations: 123.8 kB / 408.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001146/0.2013, allocations: 444.5 kB / 409.2 MB, free: 464 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.533e-05/0.2014, allocations: 23.98 kB / 409.2 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001123/0.2025, allocations: 1.024 MB / 410.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.2025, allocations: 0 / 410.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/0.2049, allocations: 1.591 MB / 411.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000411/0.2053, allocations: 256 kB / 412.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.2054, allocations: 12 kB / 412.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000527/0.206, allocations: 51.91 kB / 412.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.2061, allocations: 56.56 kB / 412.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-05/0.2062, allocations: 27.98 kB / 412.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005892/0.2068, allocations: 479 kB / 412.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2068, allocations: 0 / 412.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00153/0.2083, allocations: 0.5818 MB / 413.3 MB, free: 12.3 MB / 350.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.003561/0.2119, allocations: 2.503 MB / 415.8 MB, free: 9.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002767/0.2147, allocations: 1.38 MB / 417.1 MB, free: 8.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.2147, allocations: 2 kB / 417.1 MB, free: 8.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008884/0.2156, allocations: 463.5 kB / 417.6 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001664/0.2173, allocations: 361.2 kB / 418 MB, free: 7.598 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009299/0.2266, allocations: 5.576 MB / 423.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005687/0.2272, allocations: 0.9992 MB / 424.5 MB, free: 0.875 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001108/0.2283, allocations: 310.5 kB / 424.8 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003994/0.2287, allocations: 279.3 kB / 425.1 MB, free: 300 kB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2287, allocations: 0 / 425.1 MB, free: 300 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2386/0.4673, allocations: 28.74 MB / 453.8 MB, free: 50.41 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001762/0.4675, allocations: 200 kB / 454 MB, free: 50.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.537/3.005, allocations: 0 / 454 MB, free: 50.18 MB / 350.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