Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.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.TestStodolaTurbine2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStodolaTurbine2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStodolaTurbine2",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.7482/0.7482, allocations: 150.9 MB / 166 MB, free: 14.57 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003101/0.0003101, allocations: 15.97 kB / 204.1 MB, free: 9.98 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1183, allocations: 31.34 MB / 235.4 MB, free: 5.426 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.TestStodolaTurbine2): time 1.431/1.549, allocations: 294.4 MB / 0.5174 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4434/1.993, allocations: 197.8 MB / 0.7105 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000328/1.993, allocations: 10.47 kB / 0.7106 GB, free: 3.609 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.0004446/1.994, allocations: 141.8 kB / 0.7107 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003617/1.994, allocations: 161.7 kB / 0.7108 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02431/2.018, allocations: 10.72 MB / 0.7213 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00059/2.019, allocations: 0.585 MB / 0.7219 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/2.019, allocations: 229.3 kB / 0.7221 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002261/2.019, allocations: 233.2 kB / 0.7223 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002014/2.02, allocations: 221.8 kB / 0.7225 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.382e-05/2.02, allocations: 30.09 kB / 0.7226 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03466/2.054, allocations: 25.51 MB / 0.7475 GB, free: 348 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000146/2.055, allocations: 85 kB / 0.7475 GB, free: 332 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003359/2.055, allocations: 247.7 kB / 0.7478 GB, free: 316 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02559/2.08, allocations: 12.51 MB / 0.76 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/2.081, allocations: 2.469 kB / 0.76 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.573e-06/2.081, allocations: 0 / 0.76 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.124e-06/2.081, allocations: 0 / 0.76 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.005324/2.086, allocations: 2.192 MB / 0.7621 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/2.086, allocations: 13.78 kB / 0.7622 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.003e-05/2.086, allocations: 85.39 kB / 0.7622 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.865e-05/2.086, allocations: 55.97 kB / 0.7623 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/2.086, allocations: 330.2 kB / 0.7626 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/2.087, allocations: 94.33 kB / 0.7627 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/2.087, allocations: 34.16 kB / 0.7627 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006899/2.087, allocations: 0.5141 MB / 0.7632 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/2.087, allocations: 0 / 0.7632 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.13e-05/2.087, allocations: 15.38 kB / 0.7632 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/2.087, allocations: 21.2 kB / 0.7633 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006116/2.088, allocations: 372.5 kB / 0.7636 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.06567/2.154, allocations: 33.16 MB / 0.796 GB, free: 10.14 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004125/2.154, allocations: 209.3 kB / 0.7962 GB, free: 10.01 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/2.154, allocations: 155.1 kB / 0.7964 GB, free: 9.922 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1252/2.28, allocations: 80.44 MB / 0.8749 GB, free: 240 kB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/2.28, allocations: 37.69 kB / 0.8749 GB, free: 196 kB / 0.7012 GB Notification: Performance of pre-optimization done (n=48): time 2.444e-06/2.28, allocations: 1.203 kB / 0.8749 GB, free: 196 kB / 0.7012 GB Notification: Performance of matching and sorting (n=48): time 0.002993/2.283, allocations: 1.094 MB / 0.876 GB, free: 15.21 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.06e-05/2.283, allocations: 55.41 kB / 0.8761 GB, free: 15.15 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003411/2.283, allocations: 317.6 kB / 0.8764 GB, free: 14.89 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/2.283, allocations: 25.7 kB / 0.8764 GB, free: 14.86 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/2.283, allocations: 240.7 kB / 0.8766 GB, free: 14.66 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/2.283, allocations: 164.8 kB / 0.8768 GB, free: 14.52 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/2.283, allocations: 84.89 kB / 0.8769 GB, free: 14.46 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000115/2.284, allocations: 344.4 kB / 0.8772 GB, free: 14.12 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/2.284, allocations: 135.6 kB / 0.8773 GB, free: 14.04 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003296/2.284, allocations: 262.6 kB / 0.8776 GB, free: 13.79 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005949/2.285, allocations: 428.5 kB / 0.878 GB, free: 13.45 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/2.285, allocations: 4 kB / 0.878 GB, free: 13.45 MB / 0.7169 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001664/2.286, allocations: 0.6692 MB / 0.8786 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/2.287, allocations: 5.094 kB / 0.8786 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/2.287, allocations: 7.25 kB / 0.8786 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007209/2.287, allocations: 369.8 kB / 0.879 GB, free: 12.62 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/2.287, allocations: 44.75 kB / 0.879 GB, free: 12.58 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/2.289, allocations: 1.917 MB / 0.8809 GB, free: 10.74 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000295/2.289, allocations: 60.41 kB / 0.881 GB, free: 10.69 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.23e-05/2.289, allocations: 17.44 kB / 0.881 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.0002094/2.29, allocations: 168.1 kB / 0.8811 GB, free: 10.53 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.554e-05/2.29, allocations: 31.53 kB / 0.8812 GB, free: 10.5 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/2.291, allocations: 0.8604 MB / 0.882 GB, free: 9.859 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001113/2.292, allocations: 0.6758 MB / 0.8827 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/2.292, allocations: 0 / 0.8827 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/2.292, allocations: 0 / 0.8827 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002719/2.295, allocations: 1.581 MB / 0.8842 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/2.295, allocations: 3.938 kB / 0.8842 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/2.295, allocations: 50.98 kB / 0.8843 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006572/2.296, allocations: 400.6 kB / 0.8847 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/2.296, allocations: 12 kB / 0.8847 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/2.297, allocations: 1.933 MB / 0.8866 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/2.297, allocations: 4.062 kB / 0.8866 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/2.299, allocations: 0.8369 MB / 0.8874 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/2.299, allocations: 133.5 kB / 0.8875 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.097e-05/2.299, allocations: 10.84 kB / 0.8875 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/2.299, allocations: 19.98 kB / 0.8875 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.81e-05/2.299, allocations: 27.95 kB / 0.8876 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/2.299, allocations: 12 kB / 0.8876 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002189/2.299, allocations: 223.1 kB / 0.8878 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.51e-07/2.299, allocations: 3.469 kB / 0.8878 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004666/2.304, allocations: 2.03 MB / 0.8898 GB, free: 1.77 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.01107/2.315, allocations: 4.332 MB / 0.894 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001017/2.316, allocations: 0.5722 MB / 0.8946 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/2.316, allocations: 4.062 kB / 0.8946 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005034/2.317, allocations: 290.7 kB / 0.8948 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/2.318, allocations: 230.3 kB / 0.8951 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009462/2.327, allocations: 5.312 MB / 0.9002 GB, free: 7.273 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/2.328, allocations: 0.8686 MB / 0.9011 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002256/2.328, allocations: 59.19 kB / 0.9012 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/2.328, allocations: 187.4 kB / 0.9013 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of SimCode: time 3.6e-07/2.328, allocations: 0 / 0.9013 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.516/5.844, allocations: 79.92 MB / 0.9794 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002738/5.844, allocations: 292.8 kB / 0.9797 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.36/12.2, allocations: 2.109 kB / 0.9797 GB, free: 6.055 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStodolaTurbine2_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStodolaTurbine2.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.pipe 2>&1)