Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem.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.TestCHPEngineBarkantineSystem,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestCHPEngineBarkantineSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestCHPEngineBarkantineSystem",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.8497/0.8497, allocations: 150.8 MB / 166.1 MB, free: 15.14 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.596e-05/2.574e-05, allocations: 4 kB / 204.9 MB, free: 9.586 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.213, allocations: 31.99 MB / 236.9 MB, free: 5.48 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.TestCHPEngineBarkantineSystem): time 1.917/2.13, allocations: 301.1 MB / 0.5253 GB, free: 6.805 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.8516/2.982, allocations: 194.4 MB / 0.7152 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001713/2.983, allocations: 25.59 kB / 0.7152 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000563/2.984, allocations: 186.1 kB / 0.7154 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002715/2.987, allocations: 0.6595 MB / 0.716 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.04311/3.03, allocations: 11.22 MB / 0.727 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005032/3.035, allocations: 2.908 MB / 0.7298 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001907/3.037, allocations: 1.303 MB / 0.7311 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001761/3.039, allocations: 0.8676 MB / 0.7319 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001108/3.04, allocations: 1.034 MB / 0.7329 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001916/3.04, allocations: 112.1 kB / 0.733 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05191/3.092, allocations: 22.81 MB / 0.7553 GB, free: 384 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001051/3.093, allocations: 417 kB / 0.7557 GB, free: 300 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002356/3.095, allocations: 1.177 MB / 0.7569 GB, free: 192 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04842/3.144, allocations: 14.34 MB / 0.7709 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/3.144, allocations: 4 kB / 0.7709 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.827e-06/3.144, allocations: 3.938 kB / 0.7709 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002144/3.144, allocations: 0 / 0.7709 GB, free: 10.41 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: 610 * Number of variables: 610 Notification: Performance of Generate backend data structure: time 0.0154/3.16, allocations: 3.544 MB / 0.7743 GB, free: 8.137 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.919e-05/3.16, allocations: 6.875 kB / 0.7743 GB, free: 8.137 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001688/3.161, allocations: 328 kB / 0.7746 GB, free: 8.031 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001602/3.163, allocations: 287.8 kB / 0.7749 GB, free: 7.898 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003232/3.166, allocations: 1.14 MB / 0.776 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002793/3.166, allocations: 183 kB / 0.7762 GB, free: 7.309 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009202/3.167, allocations: 237.6 kB / 0.7764 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008357/3.176, allocations: 2.545 MB / 0.7789 GB, free: 6.484 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001117/3.176, allocations: 6.906 kB / 0.7789 GB, free: 6.48 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000581/3.177, allocations: 96 kB / 0.779 GB, free: 6.461 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-05/3.177, allocations: 60 kB / 0.7791 GB, free: 6.402 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005813/3.182, allocations: 2.225 MB / 0.7812 GB, free: 5.012 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.1136/3.296, allocations: 51.53 MB / 0.8316 GB, free: 13.48 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002776/3.299, allocations: 1.111 MB / 0.8327 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/3.3, allocations: 478.3 kB / 0.8331 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.117/4.417, allocations: 461.1 MB / 1.283 GB, free: 117.9 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.432e-05/4.418, allocations: 46.06 kB / 1.283 GB, free: 117.8 MB / 0.795 GB Notification: Performance of pre-optimization done (n=98): time 3.336e-06/4.418, allocations: 0 / 1.283 GB, free: 117.8 MB / 0.795 GB Notification: Performance of matching and sorting (n=98): time 0.01083/4.428, allocations: 3.247 MB / 1.287 GB, free: 115.2 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.983e-05/4.429, allocations: 148.8 kB / 1.287 GB, free: 115 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002466/4.431, allocations: 1.538 MB / 1.288 GB, free: 113.9 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001255/4.431, allocations: 47.45 kB / 1.288 GB, free: 113.9 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008306/4.432, allocations: 1.003 MB / 1.289 GB, free: 113.3 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003994/4.432, allocations: 354.3 kB / 1.29 GB, free: 113 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002709/4.433, allocations: 147.2 kB / 1.29 GB, free: 112.9 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 6.397e-05/4.433, allocations: 305.1 kB / 1.29 GB, free: 112.6 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/4.434, allocations: 0.5124 MB / 1.291 GB, free: 112.3 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/4.435, allocations: 0.9122 MB / 1.291 GB, free: 111.5 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002048/4.437, allocations: 1.479 MB / 1.293 GB, free: 110.2 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.394e-05/4.437, allocations: 4 kB / 1.293 GB, free: 110.2 MB / 0.795 GB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004986/4.442, allocations: 2.293 MB / 1.295 GB, free: 107.9 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/4.442, allocations: 16 kB / 1.295 GB, free: 107.9 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.231e-05/4.442, allocations: 12.56 kB / 1.295 GB, free: 107.9 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006736/4.449, allocations: 1.445 MB / 1.297 GB, free: 106.4 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008419/4.45, allocations: 230.6 kB / 1.297 GB, free: 106.2 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003038/4.453, allocations: 4.729 MB / 1.301 GB, free: 101.3 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/4.454, allocations: 221.8 kB / 1.302 GB, free: 101.1 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000164/4.454, allocations: 71.98 kB / 1.302 GB, free: 101 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 25 (CHPBarkantine.AirSource.fluid1,CHPBarkantine.Engine.Cfg.ftype,SourceP1.C.ftype,CHPBarkantine.WaterSource.C.ftype,CHPBarkantine.Engine.fluid_ws,PuitsP1.fluid,CHPBarkantine.ExchangerWaterWater.fluid_c,CHPBarkantine.ExchangerWaterWater.fluid_f,CHPBarkantine.PDC1.fluid,CHPBarkantine.WaterSteamSink.fluid,CHPBarkantine.PDC2.fluid,CHPBarkantine.ExchangerWaterFlueGases.fluid_c,CHPBarkantine.ExchangerWaterFlueGases.fluid_f,CHPBarkantine.silencieux.fluid,CHPBarkantine.FlueGasesSink.fluid,CHPBarkantine.WaterSource.fluid1,SourceP1.fluid1,CHPBarkantine.AirSource.C.ftype,CHPBarkantine.Engine.fluids[1],CHPBarkantine.silencieux.C1.diff_on_2,CHPBarkantine.Engine.Cfg.diff_on_1,CHPBarkantine.ExchangerWaterFlueGases.Sc.diff_on_1,CHPBarkantine.Engine.Cws1.diff_on_2,CHPBarkantine.PDC1.C2.diff_on_1,CHPBarkantine.Engine.Cair.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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): 6 systems {(1,4), (1,4), (3,21), (1,3), (2,11), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000944/4.455, allocations: 461.3 kB / 1.302 GB, free: 100.6 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000361/4.456, allocations: 173.8 kB / 1.302 GB, free: 100.4 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004061/4.46, allocations: 1.844 MB / 1.304 GB, free: 98.53 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/4.46, allocations: 15.09 kB / 1.304 GB, free: 98.52 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/4.46, allocations: 0 / 1.304 GB, free: 98.52 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/4.46, allocations: 7.969 kB / 1.304 GB, free: 98.51 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005422/4.465, allocations: 3.52 MB / 1.308 GB, free: 94.92 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/4.465, allocations: 4 kB / 1.308 GB, free: 94.91 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/4.466, allocations: 85.41 kB / 1.308 GB, free: 94.83 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005441/4.471, allocations: 1.24 MB / 1.309 GB, free: 93.59 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.76e-05/4.471, allocations: 28 kB / 1.309 GB, free: 93.57 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002733/4.474, allocations: 4.72 MB / 1.313 GB, free: 88.67 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.666e-06/4.474, allocations: 4.156 kB / 1.313 GB, free: 88.67 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003156/4.477, allocations: 1.688 MB / 1.315 GB, free: 86.94 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008598/4.478, allocations: 454.4 kB / 1.316 GB, free: 86.48 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003805/4.478, allocations: 19.94 kB / 1.316 GB, free: 86.46 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008141/4.479, allocations: 20 kB / 1.316 GB, free: 86.44 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/4.479, allocations: 71.09 kB / 1.316 GB, free: 86.37 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.439e-05/4.479, allocations: 39.98 kB / 1.316 GB, free: 86.33 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001383/4.481, allocations: 1.01 MB / 1.317 GB, free: 85.33 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.61e-07/4.481, allocations: 4 kB / 1.317 GB, free: 85.32 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.006054/4.487, allocations: 2.26 MB / 1.319 GB, free: 83.25 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * 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 (48): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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): 6 systems {(1,4), (1,4), (3,26), (1,4), (1,3), (2,13)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01281/4.5, allocations: 4.949 MB / 1.324 GB, free: 78.61 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003626/4.503, allocations: 1.338 MB / 1.325 GB, free: 77.27 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/4.503, allocations: 4 kB / 1.325 GB, free: 77.27 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001448/4.505, allocations: 0.6072 MB / 1.326 GB, free: 76.67 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002494/4.507, allocations: 406.2 kB / 1.326 GB, free: 76.29 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02972/4.537, allocations: 15.92 MB / 1.342 GB, free: 59.52 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/4.538, allocations: 1.38 MB / 1.343 GB, free: 58.11 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001099/4.539, allocations: 249.8 kB / 1.343 GB, free: 57.9 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007816/4.54, allocations: 0.7453 MB / 1.344 GB, free: 57.15 MB / 0.795 GB Notification: Performance of SimCode: time 7.71e-07/4.54, allocations: 0 / 1.344 GB, free: 57.15 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2995/4.84, allocations: 89.73 MB / 1.432 GB, free: 426.2 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000179/4.84, allocations: 313.5 kB / 1.432 GB, free: 425.9 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.945/10.78, allocations: 0 / 1.432 GB, free: 425.9 MB / 0.795 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestCHPEngineBarkantineSystem_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestCHPEngineBarkantineSystem.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem.pipe 2>&1)