Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestTankHorizontal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestTankHorizontal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7457/0.7457, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.6e-05/1.602e-05, allocations: 4 kB / 204.9 MB, free: 9.953 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.13, allocations: 31.98 MB / 236.8 MB, free: 5.238 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal): time 1.425/1.555, allocations: 297.4 MB / 0.5218 GB, free: 10.15 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4209/1.976, allocations: 195.2 MB / 0.7124 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004612/1.976, allocations: 19.12 kB / 0.7124 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002326/1.976, allocations: 106 kB / 0.7125 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005931/1.977, allocations: 353.6 kB / 0.7128 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02287/2, allocations: 11.22 MB / 0.7238 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00107/2.001, allocations: 1.613 MB / 0.7254 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005165/2.001, allocations: 0.6813 MB / 0.726 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003998/2.002, allocations: 0.5431 MB / 0.7266 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004745/2.002, allocations: 0.6125 MB / 0.7272 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.52e-05/2.002, allocations: 76.09 kB / 0.7272 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02882/2.031, allocations: 23.32 MB / 0.75 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002567/2.032, allocations: 260.9 kB / 0.7503 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005832/2.032, allocations: 0.6263 MB / 0.7509 GB, free: 1.082 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01916/2.051, allocations: 12.72 MB / 0.7633 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/2.051, allocations: 1.969 kB / 0.7633 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.363e-06/2.051, allocations: 2.906 kB / 0.7633 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.491e-05/2.051, allocations: 0 / 0.7633 GB, free: 12.39 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.006231/2.058, allocations: 2.856 MB / 0.7661 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/2.058, allocations: 9.844 kB / 0.7661 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001788/2.058, allocations: 182.6 kB / 0.7663 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002163/2.058, allocations: 159 kB / 0.7664 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007091/2.059, allocations: 0.6369 MB / 0.767 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/2.059, allocations: 128.8 kB / 0.7672 GB, free: 9.984 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000229/2.059, allocations: 130.2 kB / 0.7673 GB, free: 9.98 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001904/2.061, allocations: 1.396 MB / 0.7687 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/2.061, allocations: 0 / 0.7687 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.102e-05/2.061, allocations: 56.81 kB / 0.7687 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/2.061, allocations: 30.03 kB / 0.7687 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002118/2.063, allocations: 1.359 MB / 0.7701 GB, free: 9.324 MB / 0.5919 GB 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.02214/2.085, allocations: 19.14 MB / 0.7888 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/2.087, allocations: 0.816 MB / 0.7896 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006855/2.088, allocations: 373.9 kB / 0.7899 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8149/2.903, allocations: 353.6 MB / 1.135 GB, free: 316.4 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/2.903, allocations: 35.38 kB / 1.135 GB, free: 316.4 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=66): time 2.184e-06/2.903, allocations: 3.656 kB / 1.135 GB, free: 316.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=68): time 0.009176/2.912, allocations: 3.445 MB / 1.139 GB, free: 313.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/2.912, allocations: 59.97 kB / 1.139 GB, free: 313.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008289/2.913, allocations: 0.7719 MB / 1.139 GB, free: 312.9 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/2.913, allocations: 41.08 kB / 1.14 GB, free: 312.9 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000254/2.913, allocations: 0.5723 MB / 1.14 GB, free: 312.4 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/2.913, allocations: 243.4 kB / 1.14 GB, free: 312.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/2.914, allocations: 108.4 kB / 1.14 GB, free: 312.2 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.607e-05/2.914, allocations: 390.9 kB / 1.141 GB, free: 311.8 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007188/2.914, allocations: 376.5 kB / 1.141 GB, free: 311.6 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008165/2.915, allocations: 0.7251 MB / 1.142 GB, free: 310.8 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/2.917, allocations: 1.141 MB / 1.143 GB, free: 309.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/2.917, allocations: 4 kB / 1.143 GB, free: 309.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.003312/2.92, allocations: 1.633 MB / 1.145 GB, free: 308.5 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/2.92, allocations: 12.47 kB / 1.145 GB, free: 308.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/2.92, allocations: 15.98 kB / 1.145 GB, free: 308.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005499/2.926, allocations: 1.173 MB / 1.146 GB, free: 307.4 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005568/2.926, allocations: 195.5 kB / 1.146 GB, free: 307.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/2.929, allocations: 3.273 MB / 1.149 GB, free: 304 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008047/2.93, allocations: 74.86 kB / 1.149 GB, free: 303.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.339e-05/2.93, allocations: 55.11 kB / 1.149 GB, free: 303.9 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 19 (Tank1.Cs1.ftype,Tank1.Cs2.ftype,Tank1.Ce2.ftype,Tank1.Ce2.diff_on_1,SourceP1.C.ftype,Tank1.fluids[1],VanneReglante1.C2.diff_on_1,PerteDP1.fluid,VanneReglante1.fluid,PuitsP1.fluid,PerteDP2.fluid,PuitsP2.fluid,Tank1.fluid1,SourceP1.fluid1,Tank1.Cs1.diff_on_1,Tank1.Cs2.diff_on_1,Tank1.Ce2.diff_on_2,Tank1.Ce1.diff_on_2,SourceP1.C.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(3,1), (2,5), (2,6), (2,6), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003527/2.93, allocations: 278.3 kB / 1.149 GB, free: 303.7 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/2.93, allocations: 90.88 kB / 1.15 GB, free: 303.6 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003274/2.933, allocations: 1.414 MB / 1.151 GB, free: 302.5 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/2.933, allocations: 8 kB / 1.151 GB, free: 302.5 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/2.933, allocations: 4 kB / 1.151 GB, free: 302.5 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/2.934, allocations: 3.984 kB / 1.151 GB, free: 302.5 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009271/2.934, allocations: 0.9117 MB / 1.152 GB, free: 301.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/2.934, allocations: 0 / 1.152 GB, free: 301.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003388/2.935, allocations: 91.77 kB / 1.152 GB, free: 301.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004107/2.939, allocations: 0.9307 MB / 1.153 GB, free: 300.8 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.273e-05/2.939, allocations: 27.8 kB / 1.153 GB, free: 300.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002467/2.941, allocations: 3.289 MB / 1.156 GB, free: 297.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/2.941, allocations: 0 / 1.156 GB, free: 297.6 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003544/2.945, allocations: 1.778 MB / 1.158 GB, free: 296.3 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002964/2.945, allocations: 248.8 kB / 1.158 GB, free: 296 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/2.945, allocations: 15.81 kB / 1.158 GB, free: 296 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005272/2.946, allocations: 58.58 kB / 1.158 GB, free: 296 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/2.946, allocations: 64.69 kB / 1.158 GB, free: 295.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.366e-05/2.946, allocations: 29.61 kB / 1.158 GB, free: 295.9 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004732/2.947, allocations: 0.4916 MB / 1.159 GB, free: 295.5 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/2.947, allocations: 0 / 1.159 GB, free: 295.5 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.006037/2.953, allocations: 2.936 MB / 1.162 GB, free: 293.1 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Tank1.z,Tank1.h) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(3,1), (2,8), (2,7), (2,8), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01512/2.968, allocations: 6.214 MB / 1.168 GB, free: 287.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002477/2.97, allocations: 1.09 MB / 1.169 GB, free: 286.4 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/2.97, allocations: 0 / 1.169 GB, free: 286.4 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001417/2.972, allocations: 0.5731 MB / 1.169 GB, free: 285.8 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008811/2.973, allocations: 176 kB / 1.169 GB, free: 285.6 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01525/2.988, allocations: 10.23 MB / 1.179 GB, free: 274.9 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003913/2.988, allocations: 1.06 MB / 1.18 GB, free: 273.9 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005704/2.989, allocations: 160.4 kB / 1.181 GB, free: 273.7 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003993/2.989, allocations: 403.3 kB / 1.181 GB, free: 273.3 MB / 0.8106 GB Notification: Performance of SimCode: time 4.3e-07/2.989, allocations: 0 / 1.181 GB, free: 273.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.455/7.445, allocations: 95.3 MB / 1.274 GB, free: 179.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002271/7.445, allocations: 288.8 kB / 1.274 GB, free: 178.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.374/12.82, allocations: 3.234 kB / 1.274 GB, free: 178.7 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestTankHorizontal_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestTankHorizontal.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.pipe 2>&1)