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.8441/0.8441, allocations: 150.9 MB / 166.5 MB, free: 14.34 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005063/0.0005063, allocations: 16.05 kB / 236.6 MB, free: 2.008 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06144/0.06196, allocations: 31.34 MB / 267.9 MB, free: 7.551 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.634/1.696, allocations: 296.9 MB / 0.5516 GB, free: 11.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02893/1.725, allocations: 22.95 MB / 0.574 GB, free: 4.469 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003447/1.725, allocations: 8 kB / 0.574 GB, free: 4.461 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.0004973/1.726, allocations: 184.2 kB / 0.5742 GB, free: 4.285 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004701/1.726, allocations: 253.9 kB / 0.5744 GB, free: 4.035 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.01852/1.745, allocations: 7.238 MB / 0.5815 GB, free: 12.8 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001453/1.746, allocations: 0.9763 MB / 0.5825 GB, free: 11.82 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004021/1.747, allocations: 284.8 kB / 0.5827 GB, free: 11.54 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004449/1.747, allocations: 382.6 kB / 0.5831 GB, free: 11.16 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003868/1.748, allocations: 326.5 kB / 0.5834 GB, free: 10.84 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 7.074e-05/1.748, allocations: 56 kB / 0.5835 GB, free: 10.79 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02745/1.775, allocations: 15.38 MB / 0.5985 GB, free: 11.39 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002091/1.775, allocations: 123.5 kB / 0.5986 GB, free: 11.27 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005924/1.776, allocations: 362.2 kB / 0.5989 GB, free: 10.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01512/1.791, allocations: 6.937 MB / 0.6057 GB, free: 3.961 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.026e-05/1.791, allocations: 4 kB / 0.6057 GB, free: 3.957 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.124e-06/1.791, allocations: 3.938 kB / 0.6057 GB, free: 3.953 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.633e-05/1.791, allocations: 0 / 0.6057 GB, free: 3.953 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.004655/1.796, allocations: 1.582 MB / 0.6073 GB, free: 2.312 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/1.796, allocations: 8.031 kB / 0.6073 GB, free: 2.305 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001234/1.796, allocations: 119.4 kB / 0.6074 GB, free: 2.18 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/1.796, allocations: 76.47 kB / 0.6075 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004529/1.797, allocations: 354.5 kB / 0.6078 GB, free: 1.719 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/1.797, allocations: 126.1 kB / 0.6079 GB, free: 1.578 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.98e-05/1.797, allocations: 55.88 kB / 0.608 GB, free: 1.523 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/1.798, allocations: 0.7757 MB / 0.6087 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/1.798, allocations: 0 / 0.6087 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.677e-05/1.798, allocations: 20 kB / 0.6087 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.642e-05/1.798, allocations: 43.95 kB / 0.6088 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/1.799, allocations: 0.5708 MB / 0.6093 GB, free: 68 kB / 494.1 MB 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.07978/1.879, allocations: 36.65 MB / 0.6451 GB, free: 7.664 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/1.881, allocations: 0.5424 MB / 0.6457 GB, free: 7.113 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006245/1.881, allocations: 358.7 kB / 0.646 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07906/1.96, allocations: 33.82 MB / 0.679 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/1.96, allocations: 38.56 kB / 0.6791 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=126): time 2.384e-06/1.96, allocations: 0 / 0.6791 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of matching and sorting (n=126): time 0.01739/1.978, allocations: 3.301 MB / 0.6823 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/1.978, allocations: 55.41 kB / 0.6823 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004613/1.978, allocations: 336.5 kB / 0.6827 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/1.978, allocations: 29.7 kB / 0.6827 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/1.979, allocations: 229.7 kB / 0.6829 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003674/1.979, allocations: 428.1 kB / 0.6833 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001948/1.979, allocations: 134 kB / 0.6834 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002062/1.979, allocations: 378.8 kB / 0.6838 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005913/1.98, allocations: 273.6 kB / 0.6841 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006924/1.981, allocations: 393.2 kB / 0.6844 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/1.982, allocations: 0.7225 MB / 0.6851 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/1.982, allocations: 3.938 kB / 0.6852 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.004322/1.986, allocations: 1.283 MB / 0.6864 GB, free: 9.941 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/1.986, allocations: 8 kB / 0.6864 GB, free: 9.934 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/1.986, allocations: 0 / 0.6864 GB, free: 9.934 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003777/1.99, allocations: 1.379 MB / 0.6878 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/1.99, allocations: 23.92 kB / 0.6878 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/1.993, allocations: 1.398 MB / 0.6891 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/1.993, allocations: 99.28 kB / 0.6892 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.807e-05/1.993, allocations: 20 kB / 0.6893 GB, free: 6.988 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.0002667/1.994, allocations: 178.8 kB / 0.6894 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/1.994, allocations: 59.56 kB / 0.6895 GB, free: 6.746 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004634/1.998, allocations: 3.955 MB / 0.6934 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002875/2.001, allocations: 1.298 MB / 0.6946 GB, free: 1.344 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/2.001, allocations: 0 / 0.6946 GB, free: 1.344 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/2.001, allocations: 7.922 kB / 0.6946 GB, free: 1.336 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006968/2.008, allocations: 2.876 MB / 0.6974 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/2.008, allocations: 0 / 0.6974 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000281/2.009, allocations: 99.83 kB / 0.6975 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00238/2.011, allocations: 0.8518 MB / 0.6984 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.633e-05/2.011, allocations: 23.92 kB / 0.6984 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002406/2.013, allocations: 1.487 MB / 0.6998 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/2.013, allocations: 0 / 0.6998 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004805/2.018, allocations: 1.504 MB / 0.7013 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002396/2.019, allocations: 160.3 kB / 0.7015 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/2.019, allocations: 31.83 kB / 0.7015 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003665/2.019, allocations: 31.97 kB / 0.7015 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/2.019, allocations: 56.86 kB / 0.7016 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/2.019, allocations: 23.98 kB / 0.7016 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004963/2.02, allocations: 391.1 kB / 0.702 GB, free: 9.684 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.8e-07/2.02, allocations: 0 / 0.702 GB, free: 9.684 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00298/2.023, allocations: 1.056 MB / 0.703 GB, free: 8.625 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.009657/2.032, allocations: 3.167 MB / 0.7061 GB, free: 5.426 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002377/2.035, allocations: 1.159 MB / 0.7072 GB, free: 4.234 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/2.035, allocations: 0 / 0.7072 GB, free: 4.234 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001157/2.036, allocations: 0.531 MB / 0.7077 GB, free: 3.707 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/2.038, allocations: 427.7 kB / 0.7082 GB, free: 3.289 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1909/2.229, allocations: 6.612 MB / 0.7146 GB, free: 213.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/2.23, allocations: 0.9926 MB / 0.7156 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003297/2.23, allocations: 61.97 kB / 0.7156 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/2.23, allocations: 302.1 kB / 0.7159 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of SimCode: time 1.673e-06/2.23, allocations: 1.75 kB / 0.7159 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08622/2.316, allocations: 59.06 MB / 0.7736 GB, free: 176.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/17.26, allocations: 5.547 kB / 0.7736 GB, free: 176.8 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)