Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.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.Examples.SimpleExamples.TestSimpleStaticCondenser,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSimpleStaticCondenser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSimpleStaticCondenser",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.8988/0.8988, allocations: 150.9 MB / 166.5 MB, free: 14.14 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004716/0.0004716, allocations: 18.89 kB / 236.6 MB, free: 2.062 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05413/0.05461, allocations: 31.34 MB / 267.9 MB, free: 7.527 MB / 222.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.Examples.SimpleExamples.TestSimpleStaticCondenser): time 1.748/1.803, allocations: 296.9 MB / 0.5516 GB, free: 11.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.032/1.835, allocations: 24.04 MB / 0.5751 GB, free: 3.195 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003957/1.835, allocations: 7.938 kB / 0.5751 GB, free: 3.188 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/SimpleStaticCondenser.mo:58:3-60:44:writable] Warning: Connector Ec is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/SimpleStaticCondenser.mo:61:3-63:42:writable] Warning: Connector Ef is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/SimpleStaticCondenser.mo:64:3-66:36:writable] Warning: Connector Sf is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/SimpleStaticCondenser.mo:67:3-69:37:writable] Warning: Connector Sc is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.000608/1.836, allocations: 208.1 kB / 0.5753 GB, free: 2.988 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006153/1.837, allocations: 257.8 kB / 0.5755 GB, free: 2.734 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.01945/1.856, allocations: 7.42 MB / 0.5828 GB, free: 11.3 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001375/1.857, allocations: 0.8788 MB / 0.5836 GB, free: 10.42 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003876/1.858, allocations: 244.9 kB / 0.5839 GB, free: 10.18 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005002/1.858, allocations: 346.6 kB / 0.5842 GB, free: 9.84 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003383/1.859, allocations: 266.6 kB / 0.5845 GB, free: 9.578 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 5.796e-05/1.859, allocations: 43.94 kB / 0.5845 GB, free: 9.535 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02871/1.887, allocations: 16.07 MB / 0.6002 GB, free: 9.441 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001646/1.888, allocations: 95.58 kB / 0.6003 GB, free: 9.348 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004857/1.888, allocations: 330.2 kB / 0.6006 GB, free: 9.023 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01648/1.905, allocations: 7.089 MB / 0.6075 GB, free: 1.918 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.904e-06/1.905, allocations: 4 kB / 0.6075 GB, free: 1.914 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.435e-06/1.905, allocations: 0 / 0.6075 GB, free: 1.914 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/1.905, allocations: 0 / 0.6075 GB, free: 1.914 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 205 * Number of variables: 205 Notification: Performance of Generate backend data structure: time 0.004134/1.909, allocations: 1.523 MB / 0.609 GB, free: 340 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/1.909, allocations: 12.02 kB / 0.609 GB, free: 328 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001237/1.909, allocations: 107.2 kB / 0.6091 GB, free: 212 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/1.909, allocations: 76.42 kB / 0.6092 GB, free: 136 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003865/1.91, allocations: 323.2 kB / 0.6095 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.032e-05/1.91, allocations: 29.38 kB / 0.6095 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.063e-05/1.91, allocations: 44.12 kB / 0.6096 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009295/1.911, allocations: 0.6892 MB / 0.6103 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/1.911, allocations: 7.938 kB / 0.6103 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/1.911, allocations: 16 kB / 0.6103 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-05/1.911, allocations: 31.97 kB / 0.6103 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006321/1.911, allocations: 459.6 kB / 0.6107 GB, free: 14.46 MB / 0.4981 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.07937/1.991, allocations: 36.39 MB / 0.6463 GB, free: 6.348 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006911/1.991, allocations: 363.6 kB / 0.6466 GB, free: 5.984 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003775/1.992, allocations: 290.8 kB / 0.6469 GB, free: 5.699 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08937/2.081, allocations: 36.63 MB / 0.6827 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.541e-05/2.081, allocations: 38.55 kB / 0.6827 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=124): time 2.325e-06/2.081, allocations: 0 / 0.6827 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of matching and sorting (n=124): time 0.002619/2.084, allocations: 1.212 MB / 0.6839 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/2.084, allocations: 55.41 kB / 0.684 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004341/2.084, allocations: 320.5 kB / 0.6843 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/2.084, allocations: 33.69 kB / 0.6843 GB, free: 12 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/2.085, allocations: 213.8 kB / 0.6845 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003611/2.085, allocations: 420.2 kB / 0.6849 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/2.085, allocations: 113.6 kB / 0.685 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001814/2.085, allocations: 374.8 kB / 0.6854 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003357/2.086, allocations: 225.2 kB / 0.6856 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004377/2.086, allocations: 319.7 kB / 0.6859 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008344/2.087, allocations: 0.6175 MB / 0.6865 GB, free: 9.68 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/2.087, allocations: 4 kB / 0.6865 GB, free: 9.676 MB / 0.5762 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001262/2.088, allocations: 0.7806 MB / 0.6872 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/2.088, allocations: 8 kB / 0.6873 GB, free: 8.879 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/2.088, allocations: 0 / 0.6873 GB, free: 8.879 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001772/2.09, allocations: 347.8 kB / 0.6876 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.955e-05/2.09, allocations: 12 kB / 0.6876 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001276/2.091, allocations: 1.296 MB / 0.6889 GB, free: 7.176 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/2.092, allocations: 75.23 kB / 0.6889 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/2.092, allocations: 12 kB / 0.6889 GB, free: 7.09 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 8 (sinkP1.C.a,sinkP.C.a,sourceP1.C.b,sourceP.C.b,simpleStaticCondenser.Sc.b,simpleStaticCondenser.Sf.b,simpleStaticCondenser.Ef.a,simpleStaticCondenser.Ec.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(3,3), (2,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002734/2.092, allocations: 174.2 kB / 0.6891 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/2.092, allocations: 59.61 kB / 0.6892 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004157/2.096, allocations: 4.031 MB / 0.6931 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001176/2.098, allocations: 0.8235 MB / 0.6939 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/2.098, allocations: 7.938 kB / 0.6939 GB, free: 1.793 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/2.098, allocations: 3.984 kB / 0.6939 GB, free: 1.789 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003322/2.101, allocations: 2.144 MB / 0.696 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/2.101, allocations: 0 / 0.696 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002543/2.101, allocations: 95.84 kB / 0.6961 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008103/2.102, allocations: 237.5 kB / 0.6963 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.19e-05/2.102, allocations: 20 kB / 0.6964 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001206/2.103, allocations: 1.329 MB / 0.6977 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/2.103, allocations: 0 / 0.6977 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/2.105, allocations: 0.9784 MB / 0.6986 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002823/2.105, allocations: 196.2 kB / 0.6988 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/2.105, allocations: 43.73 kB / 0.6988 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/2.105, allocations: 8 kB / 0.6988 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.92e-05/2.106, allocations: 44.59 kB / 0.6989 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/2.106, allocations: 23.94 kB / 0.6989 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005807/2.106, allocations: 422.8 kB / 0.6993 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.6e-07/2.106, allocations: 0 / 0.6993 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002829/2.109, allocations: 1.002 MB / 0.7003 GB, free: 11.1 MB / 0.5919 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 (67): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(3,4), (2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006335/2.115, allocations: 2.596 MB / 0.7028 GB, free: 8.477 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00177/2.117, allocations: 1.01 MB / 0.7038 GB, free: 7.422 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/2.117, allocations: 4 kB / 0.7038 GB, free: 7.418 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006905/2.118, allocations: 408.2 kB / 0.7042 GB, free: 7.02 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002265/2.12, allocations: 438.7 kB / 0.7046 GB, free: 6.598 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009365/2.13, allocations: 5.751 MB / 0.7102 GB, free: 0.6953 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1807/2.31, allocations: 0.9912 MB / 0.7112 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003602/2.311, allocations: 73.45 kB / 0.7113 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003367/2.311, allocations: 304.2 kB / 0.7116 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of SimCode: time 9.02e-07/2.311, allocations: 5.578 kB / 0.7116 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08876/2.4, allocations: 54.57 MB / 0.7649 GB, free: 183.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.39/17.79, allocations: 8.062 kB / 0.7649 GB, free: 183.6 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSimpleStaticCondenser.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.pipe 2>&1)