Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.EmptyTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_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.0007955/0.0007954, allocations: 97.34 kB / 16.96 MB, free: 6.453 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.0008422/0.0008423, allocations: 180.3 kB / 17.84 MB, free: 6.008 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.55/1.55, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005161/0.0005163, allocations: 12 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1087, allocations: 47.58 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01566/0.1244, allocations: 15.27 MB / 343.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01109/0.1355, allocations: 6.529 MB / 350.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001216/0.1368, allocations: 31.75 kB / 350.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001109/0.1379, allocations: 294.1 kB / 350.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003064/0.141, allocations: 1.018 MB / 351.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004933/0.146, allocations: 1.383 MB / 353 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003622/0.1496, allocations: 2.611 MB / 355.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008082/0.1504, allocations: 0.4899 MB / 356.1 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001173/0.1516, allocations: 0.7162 MB / 356.8 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.1527, allocations: 0.7707 MB / 357.6 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.1528, allocations: 40 kB / 357.6 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002364/0.1552, allocations: 1.045 MB / 358.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003575/0.1556, allocations: 271.1 kB / 358.9 MB, free: 5.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002132/0.1558, allocations: 177.3 kB / 359.1 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00164/0.1574, allocations: 1.282 MB / 360.4 MB, free: 3.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1575, allocations: 0 / 360.4 MB, free: 3.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1575, allocations: 0 / 360.4 MB, free: 3.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.497e-06/0.1575, allocations: 0 / 360.4 MB, free: 3.961 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.002373/0.1599, allocations: 1.102 MB / 361.5 MB, free: 2.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.1599, allocations: 12.03 kB / 361.5 MB, free: 2.793 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001496/0.1601, allocations: 110.5 kB / 361.6 MB, free: 2.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000298/0.1604, allocations: 99.02 kB / 361.7 MB, free: 2.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008699/0.1613, allocations: 0.574 MB / 362.2 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.1614, allocations: 104.7 kB / 362.4 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.509e-05/0.1615, allocations: 55.98 kB / 362.4 MB, free: 1.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.1629, allocations: 0.8923 MB / 363.3 MB, free: 0.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.163, allocations: 4 kB / 363.3 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-05/0.1631, allocations: 23.98 kB / 363.3 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.665e-05/0.1632, allocations: 53.28 kB / 363.4 MB, free: 0.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.1645, allocations: 0.8443 MB / 364.2 MB, free: 15.95 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.005375/0.1699, allocations: 3.47 MB / 367.7 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009974/0.1709, allocations: 0.6529 MB / 368.3 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005399/0.1715, allocations: 366.3 kB / 368.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002732/0.1742, allocations: 2.058 MB / 370.8 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.1743, allocations: 47.11 kB / 370.8 MB, free: 8.961 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.793e-06/0.1743, allocations: 0 / 370.8 MB, free: 8.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006419/0.1807, allocations: 2.844 MB / 373.7 MB, free: 6.047 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.1808, allocations: 85.67 kB / 373.7 MB, free: 5.945 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008789/0.1817, allocations: 0.6797 MB / 374.4 MB, free: 5.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.96e-05/0.1817, allocations: 45.64 kB / 374.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002744/0.182, allocations: 332.5 kB / 374.8 MB, free: 4.879 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002114/0.1822, allocations: 236.7 kB / 375 MB, free: 4.645 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.811e-05/0.1823, allocations: 12 kB / 375 MB, free: 4.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.1825, allocations: 386.8 kB / 375.4 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006402/0.1831, allocations: 353.8 kB / 375.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007199/0.1839, allocations: 0.5074 MB / 376.3 MB, free: 3.332 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006843/0.1846, allocations: 415 kB / 376.7 MB, free: 2.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.1846, allocations: 0 / 376.7 MB, free: 2.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002055/0.1867, allocations: 1.149 MB / 377.8 MB, free: 1.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001695/0.1868, allocations: 213.9 kB / 378 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/0.1869, allocations: 7.938 kB / 378 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001267/0.1881, allocations: 444.4 kB / 378.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006301/0.1888, allocations: 159.7 kB / 378.6 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2292/0.4179, allocations: 1.02 MB / 379.6 MB, free: 32.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009477/0.4189, allocations: 42.25 kB / 379.7 MB, free: 32.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-05/0.419, allocations: 33.23 kB / 379.7 MB, free: 32.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.4191, allocations: 4.125 kB / 379.7 MB, free: 32.11 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002005/0.4211, allocations: 1.002 MB / 380.7 MB, free: 32.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.4211, allocations: 4.125 kB / 380.7 MB, free: 32.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008388/0.4219, allocations: 312.9 kB / 381 MB, free: 32.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007958/0.4227, allocations: 166.5 kB / 381.2 MB, free: 32.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/0.4239, allocations: 0.9067 MB / 382.1 MB, free: 31.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006949/0.4246, allocations: 46.81 kB / 382.1 MB, free: 31.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.007e-05/0.4247, allocations: 36.5 kB / 382.2 MB, free: 31.57 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.000493/0.4252, allocations: 331.1 kB / 382.5 MB, free: 31.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.4253, allocations: 79.3 kB / 382.6 MB, free: 31.39 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001982/0.4273, allocations: 1.088 MB / 383.7 MB, free: 31.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.4273, allocations: 7.766 kB / 383.7 MB, free: 31.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.4273, allocations: 1.719 kB / 383.7 MB, free: 31.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.4274, allocations: 3.328 kB / 383.7 MB, free: 31.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003355/0.4307, allocations: 2 MB / 385.7 MB, free: 31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.4307, allocations: 0.7031 kB / 385.7 MB, free: 31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005881/0.4313, allocations: 118 kB / 385.8 MB, free: 31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/0.4327, allocations: 449.4 kB / 386.2 MB, free: 30.99 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.977e-05/0.4328, allocations: 20.28 kB / 386.3 MB, free: 30.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.434, allocations: 1.03 MB / 387.3 MB, free: 30.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.434, allocations: 2.719 kB / 387.3 MB, free: 30.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.4367, allocations: 1.59 MB / 388.9 MB, free: 30.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004549/0.4372, allocations: 251.2 kB / 389.1 MB, free: 30.2 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.4373, allocations: 14.53 kB / 389.1 MB, free: 30.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005614/0.4378, allocations: 58.83 kB / 389.2 MB, free: 30.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/0.438, allocations: 55.98 kB / 389.2 MB, free: 30.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.162e-05/0.4381, allocations: 29.16 kB / 389.3 MB, free: 30.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006898/0.4388, allocations: 472.9 kB / 389.7 MB, free: 30.1 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4388, allocations: 4.734 kB / 389.7 MB, free: 30.1 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002079/0.4409, allocations: 0.5796 MB / 390.3 MB, free: 30.1 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.003871/0.4448, allocations: 2.502 MB / 392.8 MB, free: 29.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002966/0.4478, allocations: 1.379 MB / 394.2 MB, free: 29.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.4478, allocations: 3.656 kB / 394.2 MB, free: 29.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009039/0.4487, allocations: 467.2 kB / 394.7 MB, free: 29.33 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.4505, allocations: 370.1 kB / 395 MB, free: 29.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008756/0.4593, allocations: 5.584 MB / 400.6 MB, free: 27.69 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.4597, allocations: 0.9936 MB / 401.6 MB, free: 26.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001139/0.4609, allocations: 308.4 kB / 401.9 MB, free: 26.91 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003882/0.4613, allocations: 281.7 kB / 402.2 MB, free: 26.9 MB / 318.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4613, allocations: 0 / 402.2 MB, free: 26.9 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04386/0.5051, allocations: 28.74 MB / 430.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/0.5053, allocations: 213.2 kB / 431.1 MB, free: 496 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.625/3.13, allocations: 0 / 431.1 MB, free: 496 kB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat