Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.SteamTurbine.TestStodolaTurbine.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.Book.SimpleExamples.SteamTurbine.TestStodolaTurbine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_SteamTurbine_TestStodolaTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.SteamTurbine.TestStodolaTurbine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_SteamTurbine_TestStodolaTurbine",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.8004/0.8004, allocations: 150.9 MB / 166 MB, free: 14.67 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003071/0.000307, allocations: 11.97 kB / 204.1 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.159, allocations: 31.33 MB / 235.4 MB, free: 5.441 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.Book.SimpleExamples.SteamTurbine.TestStodolaTurbine): time 1.54/1.699, allocations: 294.3 MB / 0.5173 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4516/2.151, allocations: 197.8 MB / 0.7105 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002949/2.151, allocations: 8.469 kB / 0.7105 GB, free: 3.566 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/StodolaTurbine.mo:65:3-66:54:writable] Warning: Connector Ce 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/StodolaTurbine.mo:67:3-68:52:writable] Warning: Connector Cs 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/StodolaTurbine.mo:72:3-76:23:writable] Warning: Connector M is not balanced: The number of potential variables (2) 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.0004004/2.152, allocations: 140.9 kB / 0.7106 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002943/2.152, allocations: 160.8 kB / 0.7108 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02706/2.179, allocations: 10.71 MB / 0.7212 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006663/2.18, allocations: 0.5892 MB / 0.7218 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002806/2.18, allocations: 224.9 kB / 0.722 GB, free: 3.336 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002504/2.18, allocations: 239.6 kB / 0.7222 GB, free: 3.336 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/2.181, allocations: 222.8 kB / 0.7224 GB, free: 3.336 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.393e-05/2.181, allocations: 26.16 kB / 0.7225 GB, free: 3.336 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03826/2.219, allocations: 25.51 MB / 0.7474 GB, free: 320 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001877/2.219, allocations: 85.7 kB / 0.7475 GB, free: 304 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003872/2.22, allocations: 246.6 kB / 0.7477 GB, free: 288 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03145/2.251, allocations: 12.51 MB / 0.7599 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/2.251, allocations: 0 / 0.7599 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.513e-06/2.251, allocations: 2.906 kB / 0.7599 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.31e-05/2.251, allocations: 0 / 0.7599 GB, free: 11.95 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.006029/2.257, allocations: 2.199 MB / 0.7621 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/2.257, allocations: 10.78 kB / 0.7621 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.214e-05/2.257, allocations: 89.17 kB / 0.7622 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.271e-05/2.257, allocations: 53.94 kB / 0.7622 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003334/2.258, allocations: 322.1 kB / 0.7625 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001237/2.258, allocations: 94.3 kB / 0.7626 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.173e-05/2.258, allocations: 36.25 kB / 0.7627 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007075/2.259, allocations: 0.5135 MB / 0.7632 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/2.259, allocations: 0 / 0.7632 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/2.259, allocations: 20.59 kB / 0.7632 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/2.259, allocations: 21.86 kB / 0.7632 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006293/2.259, allocations: 366.3 kB / 0.7635 GB, free: 9.906 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.06863/2.328, allocations: 33.17 MB / 0.7959 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004487/2.328, allocations: 211.5 kB / 0.7961 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002327/2.329, allocations: 144.4 kB / 0.7963 GB, free: 9.938 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1321/2.461, allocations: 80.44 MB / 0.8748 GB, free: 256 kB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/2.461, allocations: 35.44 kB / 0.8749 GB, free: 216 kB / 0.7012 GB Notification: Performance of pre-optimization done (n=48): time 2.455e-06/2.461, allocations: 0 / 0.8749 GB, free: 216 kB / 0.7012 GB Notification: Performance of matching and sorting (n=48): time 0.003189/2.464, allocations: 1.099 MB / 0.8759 GB, free: 15.23 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/2.464, allocations: 51.41 kB / 0.876 GB, free: 15.16 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003907/2.464, allocations: 317.5 kB / 0.8763 GB, free: 14.9 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/2.465, allocations: 32.95 kB / 0.8763 GB, free: 14.87 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/2.465, allocations: 239.9 kB / 0.8765 GB, free: 14.68 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.000117/2.465, allocations: 157.8 kB / 0.8767 GB, free: 14.54 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/2.465, allocations: 82.8 kB / 0.8768 GB, free: 14.48 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001213/2.465, allocations: 351.9 kB / 0.8771 GB, free: 14.14 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/2.465, allocations: 132.6 kB / 0.8772 GB, free: 14.06 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003494/2.466, allocations: 264.6 kB / 0.8775 GB, free: 13.81 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006232/2.466, allocations: 434.3 kB / 0.8779 GB, free: 13.46 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/2.466, allocations: 0 / 0.8779 GB, free: 13.46 MB / 0.7169 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001734/2.468, allocations: 0.6694 MB / 0.8786 GB, free: 12.97 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/2.468, allocations: 5.203 kB / 0.8786 GB, free: 12.96 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/2.468, allocations: 11.75 kB / 0.8786 GB, free: 12.96 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007964/2.469, allocations: 380.8 kB / 0.8789 GB, free: 12.62 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/2.469, allocations: 45.17 kB / 0.879 GB, free: 12.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001544/2.471, allocations: 1.907 MB / 0.8808 GB, free: 10.76 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003407/2.471, allocations: 64.09 kB / 0.8809 GB, free: 10.7 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-05/2.471, allocations: 18 kB / 0.8809 GB, free: 10.68 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (sourceP.fluid1,sourceP.C.ftype,stodolaTurbine.fluid,puitsP.fluid,stodolaTurbine.Cs.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 (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002013/2.471, allocations: 163.1 kB / 0.8811 GB, free: 10.54 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.48e-05/2.471, allocations: 38.44 kB / 0.8811 GB, free: 10.51 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/2.473, allocations: 0.8654 MB / 0.882 GB, free: 9.902 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001212/2.474, allocations: 0.6597 MB / 0.8826 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/2.474, allocations: 4 kB / 0.8826 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/2.474, allocations: 3.984 kB / 0.8826 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/2.477, allocations: 1.569 MB / 0.8841 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/2.477, allocations: 5.031 kB / 0.8842 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/2.477, allocations: 46.89 kB / 0.8842 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007425/2.478, allocations: 407.7 kB / 0.8846 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/2.478, allocations: 8 kB / 0.8846 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/2.48, allocations: 1.941 MB / 0.8865 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/2.48, allocations: 6.938 kB / 0.8865 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/2.482, allocations: 0.8374 MB / 0.8873 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/2.482, allocations: 128.4 kB / 0.8874 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.131e-05/2.482, allocations: 11.94 kB / 0.8874 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/2.482, allocations: 25.06 kB / 0.8875 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.351e-05/2.482, allocations: 23.97 kB / 0.8875 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.919e-05/2.482, allocations: 4 kB / 0.8875 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002495/2.482, allocations: 223.1 kB / 0.8877 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.3e-07/2.482, allocations: 0 / 0.8877 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.006082/2.489, allocations: 2.037 MB / 0.8897 GB, free: 1.82 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (35): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01386/2.502, allocations: 4.329 MB / 0.8939 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00142/2.504, allocations: 0.5696 MB / 0.8945 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/2.504, allocations: 0 / 0.8945 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000597/2.505, allocations: 289.5 kB / 0.8948 GB, free: 13 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/2.506, allocations: 231.2 kB / 0.895 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0121/2.518, allocations: 5.318 MB / 0.9002 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004898/2.518, allocations: 0.8675 MB / 0.901 GB, free: 6.434 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002862/2.519, allocations: 63.19 kB / 0.9011 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002405/2.519, allocations: 188.5 kB / 0.9013 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of SimCode: time 7.42e-07/2.519, allocations: 0 / 0.9013 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1239/2.643, allocations: 79.95 MB / 0.9793 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002317/2.643, allocations: 316.1 kB / 0.9796 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.906/8.549, allocations: 0 / 0.9796 GB, free: 6.121 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.SteamTurbine.TestStodolaTurbine.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.SteamTurbine.TestStodolaTurbine.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.SteamTurbine.TestStodolaTurbine.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.SteamTurbine.TestStodolaTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_SteamTurbine_TestStodolaTurbine_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_SteamTurbine_TestStodolaTurbine.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.SteamTurbine.TestStodolaTurbine.pipe 2>&1)