Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.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.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSteamEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSteamEngine",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.7964/0.7964, allocations: 150.9 MB / 166 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003079/0.000308, allocations: 19.97 kB / 204.1 MB, free: 9.977 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.13, allocations: 31.34 MB / 235.4 MB, free: 5.41 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine): time 1.544/1.674, allocations: 294.1 MB / 0.5171 GB, free: 13.15 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4688/2.143, allocations: 198.1 MB / 0.7106 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003023/2.143, allocations: 9.344 kB / 0.7106 GB, free: 3.562 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/SteamEngine.mo:41:3-42:53:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/SteamEngine.mo:43:3-44:51:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.000504/2.144, allocations: 141.4 kB / 0.7107 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003576/2.144, allocations: 145.5 kB / 0.7108 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02711/2.171, allocations: 10.78 MB / 0.7214 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000542/2.172, allocations: 494.1 kB / 0.7218 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/2.172, allocations: 200.5 kB / 0.722 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003153/2.173, allocations: 203.9 kB / 0.7222 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002485/2.173, allocations: 195.9 kB / 0.7224 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.59e-05/2.173, allocations: 26.34 kB / 0.7224 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04064/2.214, allocations: 25.58 MB / 0.7474 GB, free: 280 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001294/2.214, allocations: 75.77 kB / 0.7475 GB, free: 268 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002972/2.214, allocations: 210.2 kB / 0.7477 GB, free: 256 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02599/2.24, allocations: 12.5 MB / 0.7599 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/2.24, allocations: 0 / 0.7599 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.253e-06/2.24, allocations: 1.203 kB / 0.7599 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.614e-05/2.24, allocations: 4 kB / 0.7599 GB, free: 11.93 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.005169/2.245, allocations: 2.107 MB / 0.762 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/2.245, allocations: 10.41 kB / 0.762 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.084e-05/2.245, allocations: 88.3 kB / 0.762 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.862e-05/2.246, allocations: 47.16 kB / 0.7621 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/2.246, allocations: 305.9 kB / 0.7624 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/2.246, allocations: 32.94 kB / 0.7624 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.671e-05/2.246, allocations: 35.16 kB / 0.7625 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005828/2.247, allocations: 425.8 kB / 0.7629 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/2.247, allocations: 0 / 0.7629 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/2.247, allocations: 15.69 kB / 0.7629 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/2.247, allocations: 21.38 kB / 0.7629 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004118/2.247, allocations: 274 kB / 0.7632 GB, free: 10.07 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.06963/2.317, allocations: 32.86 MB / 0.7952 GB, free: 10.71 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001847/2.317, allocations: 106.5 kB / 0.7953 GB, free: 10.64 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/2.317, allocations: 89.75 kB / 0.7954 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1292/2.446, allocations: 80.44 MB / 0.874 GB, free: 0.9102 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/2.446, allocations: 33.88 kB / 0.874 GB, free: 0.8711 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=34): time 2.395e-06/2.446, allocations: 0 / 0.874 GB, free: 0.8711 MB / 0.7012 GB Notification: Performance of matching and sorting (n=34): time 0.0008947/2.447, allocations: 418.9 kB / 0.8744 GB, free: 0.5273 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/2.447, allocations: 56.94 kB / 0.8745 GB, free: 472 kB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/2.448, allocations: 297.8 kB / 0.8748 GB, free: 220 kB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/2.448, allocations: 26.91 kB / 0.8748 GB, free: 188 kB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/2.448, allocations: 239 kB / 0.875 GB, free: 15.99 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.056e-05/2.448, allocations: 115.8 kB / 0.8751 GB, free: 15.89 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.463e-05/2.448, allocations: 66.17 kB / 0.8752 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001138/2.448, allocations: 348.4 kB / 0.8755 GB, free: 15.5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/2.448, allocations: 75.72 kB / 0.8756 GB, free: 15.46 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/2.448, allocations: 189 kB / 0.8758 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003482/2.449, allocations: 294.3 kB / 0.876 GB, free: 15.03 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/2.449, allocations: 8 kB / 0.8761 GB, free: 15.02 MB / 0.7169 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006251/2.449, allocations: 372.8 kB / 0.8764 GB, free: 14.76 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/2.45, allocations: 5.672 kB / 0.8764 GB, free: 14.76 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/2.45, allocations: 11.75 kB / 0.8764 GB, free: 14.75 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002748/2.45, allocations: 118.5 kB / 0.8765 GB, free: 14.64 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/2.45, allocations: 35.98 kB / 0.8766 GB, free: 14.61 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004371/2.45, allocations: 0.608 MB / 0.8772 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/2.451, allocations: 39.16 kB / 0.8772 GB, free: 13.99 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.366e-05/2.451, allocations: 19.25 kB / 0.8772 GB, free: 13.97 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (sourceP.fluid1,sourceP.C.ftype,steamEngine1.fluid,puitsP.fluid,steamEngine1.C2.diff_on_1,sourceP.C.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001591/2.451, allocations: 157.5 kB / 0.8774 GB, free: 13.84 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.761e-05/2.451, allocations: 31.56 kB / 0.8774 GB, free: 13.8 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007089/2.452, allocations: 0.5636 MB / 0.878 GB, free: 13.43 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004819/2.452, allocations: 408.3 kB / 0.8783 GB, free: 13.15 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/2.452, allocations: 0 / 0.8783 GB, free: 13.15 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/2.452, allocations: 3.984 kB / 0.8783 GB, free: 13.14 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/2.454, allocations: 1.18 MB / 0.8795 GB, free: 12.19 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.974e-06/2.454, allocations: 3.938 kB / 0.8795 GB, free: 12.19 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/2.454, allocations: 49.48 kB / 0.8795 GB, free: 12.14 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002134/2.454, allocations: 122.4 kB / 0.8797 GB, free: 12.04 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/2.454, allocations: 4.312 kB / 0.8797 GB, free: 12.04 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000418/2.454, allocations: 0.63 MB / 0.8803 GB, free: 11.44 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/2.454, allocations: 0 / 0.8803 GB, free: 11.44 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005951/2.455, allocations: 0.5328 MB / 0.8808 GB, free: 11 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/2.455, allocations: 143.4 kB / 0.8809 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.64e-05/2.455, allocations: 8.062 kB / 0.8809 GB, free: 10.85 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/2.455, allocations: 14.11 kB / 0.881 GB, free: 10.84 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.301e-05/2.455, allocations: 22.78 kB / 0.881 GB, free: 10.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/2.456, allocations: 9.812 kB / 0.881 GB, free: 10.82 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002156/2.456, allocations: 222.3 kB / 0.8812 GB, free: 10.64 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.21e-07/2.456, allocations: 0 / 0.8812 GB, free: 10.64 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004662/2.46, allocations: 2.032 MB / 0.8832 GB, free: 8.625 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0103/2.471, allocations: 4.034 MB / 0.8871 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006621/2.471, allocations: 428.9 kB / 0.8875 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/2.471, allocations: 0 / 0.8875 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002935/2.472, allocations: 200 kB / 0.8877 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/2.473, allocations: 202.3 kB / 0.8879 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006508/2.479, allocations: 4.271 MB / 0.8921 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/2.48, allocations: 0.8479 MB / 0.8929 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002392/2.48, allocations: 62.88 kB / 0.893 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/2.48, allocations: 171.4 kB / 0.8931 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of SimCode: time 4.21e-07/2.48, allocations: 0 / 0.8931 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1047/2.585, allocations: 77.44 MB / 0.9688 GB, free: 1.375 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002139/2.585, allocations: 284.8 kB / 0.969 GB, free: 0.9961 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.883/8.468, allocations: 0 / 0.969 GB, free: 0.9961 MB / 0.795 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSteamEngine_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSteamEngine.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe 2>&1)