Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.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.TestStaticWaterWaterExchanger,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticWaterWaterExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticWaterWaterExchanger",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.8498/0.8498, allocations: 150.9 MB / 166.5 MB, free: 14.35 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003548/0.0003547, allocations: 19.14 kB / 236.6 MB, free: 2.008 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05423/0.0546, 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.TestStaticWaterWaterExchanger): time 1.602/1.657, allocations: 296.4 MB / 0.5511 GB, free: 11.41 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02904/1.686, allocations: 22.96 MB / 0.5736 GB, free: 4.363 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004188/1.686, allocations: 12 kB / 0.5736 GB, free: 4.352 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/StaticWaterWaterExchanger.mo:81:3-83:42: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/StaticWaterWaterExchanger.mo:84:3-86:38: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/StaticWaterWaterExchanger.mo:87:3-89:37: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/StaticWaterWaterExchanger.mo:90:3-92: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.0006065/1.687, allocations: 197.8 kB / 0.5738 GB, free: 4.16 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008234/1.688, allocations: 317.9 kB / 0.5741 GB, free: 3.848 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.01842/1.706, allocations: 7.325 MB / 0.5812 GB, free: 12.52 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001372/1.707, allocations: 0.9763 MB / 0.5822 GB, free: 11.54 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005265/1.708, allocations: 292.7 kB / 0.5824 GB, free: 11.25 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006138/1.709, allocations: 382.6 kB / 0.5828 GB, free: 10.88 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005241/1.709, allocations: 330.5 kB / 0.5831 GB, free: 10.55 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001522/1.709, allocations: 52 kB / 0.5832 GB, free: 10.5 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02742/1.737, allocations: 15.37 MB / 0.5982 GB, free: 11.11 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002192/1.737, allocations: 131.5 kB / 0.5983 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005848/1.738, allocations: 354.2 kB / 0.5986 GB, free: 10.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01598/1.754, allocations: 6.944 MB / 0.6054 GB, free: 3.676 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/1.754, allocations: 7.938 kB / 0.6054 GB, free: 3.668 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.973e-06/1.754, allocations: 0 / 0.6054 GB, free: 3.668 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.873e-05/1.754, allocations: 4 kB / 0.6054 GB, free: 3.664 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: 210 * Number of variables: 210 Notification: Performance of Generate backend data structure: time 0.004664/1.758, allocations: 1.579 MB / 0.607 GB, free: 2.027 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/1.758, allocations: 8.031 kB / 0.607 GB, free: 2.02 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001466/1.759, allocations: 119.4 kB / 0.6071 GB, free: 1.895 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001447/1.759, allocations: 72.47 kB / 0.6072 GB, free: 1.824 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004224/1.759, allocations: 354.5 kB / 0.6075 GB, free: 1.438 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00019/1.759, allocations: 126.1 kB / 0.6076 GB, free: 1.297 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.894e-05/1.759, allocations: 48 kB / 0.6077 GB, free: 1.25 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/1.761, allocations: 0.7835 MB / 0.6084 GB, free: 432 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/1.761, allocations: 4 kB / 0.6084 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.158e-05/1.761, allocations: 16 kB / 0.6085 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.74e-05/1.761, allocations: 35.97 kB / 0.6085 GB, free: 376 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/1.762, allocations: 0.5786 MB / 0.6091 GB, free: 15.79 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.07141/1.833, allocations: 36.64 MB / 0.6448 GB, free: 7.391 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/1.835, allocations: 0.5424 MB / 0.6454 GB, free: 6.84 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005831/1.835, allocations: 358.7 kB / 0.6457 GB, free: 6.488 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07155/1.907, allocations: 33.81 MB / 0.6787 GB, free: 1.387 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/1.907, allocations: 34.56 kB / 0.6788 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=126): time 3.206e-06/1.907, allocations: 0 / 0.6788 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of matching and sorting (n=126): time 0.01588/1.923, allocations: 3.305 MB / 0.682 GB, free: 14 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/1.923, allocations: 55.41 kB / 0.6821 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004299/1.923, allocations: 340.4 kB / 0.6824 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.325e-05/1.923, allocations: 29.7 kB / 0.6824 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/1.924, allocations: 229.7 kB / 0.6826 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003431/1.924, allocations: 424.1 kB / 0.683 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002099/1.924, allocations: 142 kB / 0.6832 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001466/1.924, allocations: 370.8 kB / 0.6835 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005723/1.925, allocations: 277.6 kB / 0.6838 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006404/1.926, allocations: 397 kB / 0.6842 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/1.927, allocations: 0.7147 MB / 0.6849 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/1.927, allocations: 11.86 kB / 0.6849 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003924/1.931, allocations: 1.279 MB / 0.6861 GB, free: 9.664 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/1.931, allocations: 8 kB / 0.6861 GB, free: 9.656 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/1.931, allocations: 0 / 0.6861 GB, free: 9.656 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003571/1.934, allocations: 1.379 MB / 0.6875 GB, free: 8.277 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/1.935, allocations: 27.92 kB / 0.6875 GB, free: 8.25 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00218/1.937, allocations: 1.394 MB / 0.6889 GB, free: 6.832 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004405/1.937, allocations: 95.16 kB / 0.689 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.969e-05/1.937, allocations: 20 kB / 0.689 GB, free: 6.719 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 (puitsP3.C.a,puitsP2.C.a,sourceP3.C.b,sourceP2.C.b,plateHeatExchanger.Sc.b,plateHeatExchanger.Sf.b,plateHeatExchanger.Ef.a,plateHeatExchanger.Ec.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(6,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002682/1.938, allocations: 181.8 kB / 0.6891 GB, free: 6.531 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/1.938, allocations: 55.58 kB / 0.6892 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003977/1.942, allocations: 3.951 MB / 0.6931 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002567/1.944, allocations: 1.298 MB / 0.6943 GB, free: 1.078 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/1.944, allocations: 4 kB / 0.6943 GB, free: 1.074 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/1.944, allocations: 11.91 kB / 0.6943 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006502/1.951, allocations: 2.883 MB / 0.6972 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/1.951, allocations: 3.938 kB / 0.6972 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000269/1.951, allocations: 91.91 kB / 0.6972 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002189/1.953, allocations: 0.8557 MB / 0.6981 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.459e-05/1.953, allocations: 15.98 kB / 0.6981 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002069/1.955, allocations: 1.495 MB / 0.6996 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.955, allocations: 0 / 0.6996 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004252/1.96, allocations: 1.5 MB / 0.701 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/1.96, allocations: 168.3 kB / 0.7012 GB, free: 9.922 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/1.96, allocations: 31.77 kB / 0.7012 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003569/1.96, allocations: 27.97 kB / 0.7012 GB, free: 9.863 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/1.961, allocations: 52.92 kB / 0.7013 GB, free: 9.812 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-05/1.961, allocations: 27.98 kB / 0.7013 GB, free: 9.785 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004149/1.961, allocations: 383.1 kB / 0.7017 GB, free: 9.41 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.292e-06/1.961, allocations: 3.938 kB / 0.7017 GB, free: 9.406 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002588/1.964, allocations: 1.056 MB / 0.7027 GB, free: 8.348 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 (62): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(6,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008456/1.972, allocations: 3.163 MB / 0.7058 GB, free: 5.152 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002146/1.974, allocations: 1.158 MB / 0.7069 GB, free: 3.957 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/1.974, allocations: 4 kB / 0.7069 GB, free: 3.953 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001043/1.975, allocations: 0.5198 MB / 0.7074 GB, free: 3.438 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/1.977, allocations: 439.2 kB / 0.7079 GB, free: 3.012 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1868/2.164, allocations: 6.616 MB / 0.7143 GB, free: 213.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004236/2.165, allocations: 0.9926 MB / 0.7153 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000318/2.165, allocations: 68.31 kB / 0.7154 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/2.165, allocations: 305.8 kB / 0.7157 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of SimCode: time 1.202e-06/2.165, allocations: 0 / 0.7157 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07861/2.244, allocations: 59.04 MB / 0.7733 GB, free: 176.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/17, allocations: 9.391 kB / 0.7733 GB, free: 176.1 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger_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_TestStaticWaterWaterExchanger.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.pipe 2>&1)