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.7895/0.7895, allocations: 150.9 MB / 166.5 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004769/0.000477, allocations: 16.62 kB / 236.6 MB, free: 2.008 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06708/0.06759, allocations: 31.35 MB / 268 MB, free: 7.539 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.549/1.617, allocations: 296.4 MB / 0.5511 GB, free: 11.09 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02717/1.644, allocations: 24.04 MB / 0.5746 GB, free: 2.953 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003651/1.644, allocations: 7.938 kB / 0.5746 GB, free: 2.945 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.0005518/1.645, allocations: 222.5 kB / 0.5748 GB, free: 2.73 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005771/1.645, allocations: 321.8 kB / 0.5751 GB, free: 2.414 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.01789/1.663, allocations: 7.513 MB / 0.5825 GB, free: 10.9 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001103/1.664, allocations: 0.8748 MB / 0.5833 GB, free: 10.02 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003168/1.665, allocations: 240.9 kB / 0.5835 GB, free: 9.785 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000413/1.665, allocations: 354.6 kB / 0.5839 GB, free: 9.438 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/1.665, allocations: 266.6 kB / 0.5841 GB, free: 9.176 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.924e-05/1.666, allocations: 40 kB / 0.5842 GB, free: 9.137 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02447/1.69, allocations: 16.08 MB / 0.5999 GB, free: 9.035 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/1.69, allocations: 103.6 kB / 0.6 GB, free: 8.934 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004131/1.691, allocations: 330.3 kB / 0.6003 GB, free: 8.609 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01424/1.705, allocations: 7.085 MB / 0.6072 GB, free: 1.508 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/1.705, allocations: 0 / 0.6072 GB, free: 1.508 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.934e-06/1.705, allocations: 0 / 0.6072 GB, free: 1.508 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.132e-05/1.705, allocations: 0 / 0.6072 GB, free: 1.508 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.003803/1.709, allocations: 1.532 MB / 0.6087 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/1.709, allocations: 8.031 kB / 0.6087 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.841e-05/1.709, allocations: 111.2 kB / 0.6088 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/1.709, allocations: 72.42 kB / 0.6089 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003145/1.709, allocations: 319.2 kB / 0.6092 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.548e-05/1.709, allocations: 29.38 kB / 0.6092 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.23e-05/1.709, allocations: 44.12 kB / 0.6093 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008171/1.71, allocations: 0.6892 MB / 0.6099 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/1.71, allocations: 4 kB / 0.6099 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/1.71, allocations: 16 kB / 0.6099 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.09e-05/1.71, allocations: 31.97 kB / 0.61 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005452/1.711, allocations: 463.6 kB / 0.6104 GB, free: 14.05 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.07474/1.786, allocations: 36.39 MB / 0.646 GB, free: 5.949 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007084/1.786, allocations: 359.6 kB / 0.6463 GB, free: 5.59 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003433/1.787, allocations: 294.8 kB / 0.6466 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0837/1.87, allocations: 36.63 MB / 0.6824 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/1.871, allocations: 34.5 kB / 0.6824 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=124): time 3.005e-06/1.871, allocations: 0 / 0.6824 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=124): time 0.002531/1.873, allocations: 1.212 MB / 0.6836 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/1.873, allocations: 55.41 kB / 0.6836 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000427/1.874, allocations: 324.5 kB / 0.6839 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/1.874, allocations: 29.7 kB / 0.684 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/1.874, allocations: 217.8 kB / 0.6842 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003286/1.874, allocations: 424.1 kB / 0.6846 GB, free: 10.97 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/1.874, allocations: 117.6 kB / 0.6847 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001474/1.874, allocations: 366.8 kB / 0.685 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003063/1.875, allocations: 225.2 kB / 0.6852 GB, free: 10.26 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003512/1.875, allocations: 323.7 kB / 0.6856 GB, free: 9.914 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007011/1.876, allocations: 0.6175 MB / 0.6862 GB, free: 9.273 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/1.876, allocations: 4 kB / 0.6862 GB, free: 9.27 MB / 0.5762 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001074/1.877, allocations: 0.7805 MB / 0.6869 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/1.877, allocations: 9.719 kB / 0.6869 GB, free: 8.473 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.851e-05/1.877, allocations: 4.25 kB / 0.6869 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001763/1.879, allocations: 337.3 kB / 0.6873 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.277e-05/1.879, allocations: 15.94 kB / 0.6873 GB, free: 8.117 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/1.88, allocations: 1.295 MB / 0.6885 GB, free: 6.773 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002722/1.88, allocations: 79.23 kB / 0.6886 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/1.88, allocations: 12 kB / 0.6886 GB, free: 6.684 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.000235/1.881, allocations: 182.3 kB / 0.6888 GB, free: 6.496 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.729e-05/1.881, allocations: 51.58 kB / 0.6888 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003494/1.884, allocations: 4.027 MB / 0.6928 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001037/1.885, allocations: 0.8275 MB / 0.6936 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/1.885, allocations: 7.922 kB / 0.6936 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.852e-06/1.885, allocations: 0 / 0.6936 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/1.888, allocations: 2.144 MB / 0.6957 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/1.888, allocations: 0 / 0.6957 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002363/1.888, allocations: 99.83 kB / 0.6958 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007746/1.889, allocations: 242.7 kB / 0.696 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.571e-05/1.889, allocations: 12 kB / 0.696 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009743/1.89, allocations: 1.337 MB / 0.6973 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.89, allocations: 0 / 0.6973 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/1.891, allocations: 0.9706 MB / 0.6983 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002456/1.892, allocations: 192.3 kB / 0.6985 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/1.892, allocations: 43.72 kB / 0.6985 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/1.892, allocations: 12 kB / 0.6985 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.564e-05/1.892, allocations: 48.59 kB / 0.6986 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/1.892, allocations: 19.94 kB / 0.6986 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004645/1.893, allocations: 414.8 kB / 0.699 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.893, allocations: 0 / 0.699 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002708/1.895, allocations: 1.002 MB / 0.7 GB, free: 10.71 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.005991/1.901, allocations: 2.594 MB / 0.7025 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001427/1.903, allocations: 1.018 MB / 0.7035 GB, free: 7.02 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/1.903, allocations: 0 / 0.7035 GB, free: 7.02 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005937/1.903, allocations: 412.2 kB / 0.7039 GB, free: 6.621 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002067/1.905, allocations: 436.4 kB / 0.7043 GB, free: 6.195 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007877/1.913, allocations: 5.752 MB / 0.7099 GB, free: 296 kB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1793/2.093, allocations: 0.9846 MB / 0.7109 GB, free: 214 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003846/2.093, allocations: 75.44 kB / 0.7109 GB, free: 214 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003147/2.093, allocations: 305.3 kB / 0.7112 GB, free: 214 MB / 0.5919 GB Notification: Performance of SimCode: time 9.62e-07/2.093, allocations: 2.078 kB / 0.7112 GB, free: 214 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09221/2.186, allocations: 54.58 MB / 0.7645 GB, free: 183.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.83/17.02, allocations: 8.062 kB / 0.7646 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)