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.8056/0.8056, allocations: 150.9 MB / 166.4 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000325/0.000325, allocations: 19.97 kB / 204.6 MB, free: 9.742 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1538, allocations: 31.33 MB / 236 MB, free: 5.414 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.Examples.SimpleExamples.TestStaticWaterWaterExchanger): time 1.526/1.68, allocations: 296.3 MB / 0.5198 GB, free: 11.76 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02587/1.705, allocations: 22.95 MB / 0.5422 GB, free: 4.941 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004528/1.706, allocations: 4.625 kB / 0.5422 GB, free: 4.938 MB / 430.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.0004992/1.706, allocations: 172.8 kB / 0.5424 GB, free: 4.77 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005579/1.707, allocations: 261.2 kB / 0.5426 GB, free: 4.516 MB / 430.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.01735/1.724, allocations: 7.233 MB / 0.5497 GB, free: 13.31 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001149/1.726, allocations: 0.9715 MB / 0.5507 GB, free: 12.34 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003917/1.726, allocations: 278 kB / 0.5509 GB, free: 12.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003708/1.726, allocations: 378.6 kB / 0.5513 GB, free: 11.7 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003251/1.727, allocations: 334.4 kB / 0.5516 GB, free: 11.38 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.476e-05/1.727, allocations: 52 kB / 0.5516 GB, free: 11.33 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02329/1.75, allocations: 15.16 MB / 0.5664 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001773/1.75, allocations: 131.5 kB / 0.5666 GB, free: 12.02 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004501/1.751, allocations: 358.2 kB / 0.5669 GB, free: 11.67 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01406/1.765, allocations: 6.931 MB / 0.5737 GB, free: 4.727 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/1.765, allocations: 0 / 0.5737 GB, free: 4.727 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.262e-06/1.765, allocations: 0 / 0.5737 GB, free: 4.727 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/1.765, allocations: 0 / 0.5737 GB, free: 4.727 MB / 462.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.003931/1.769, allocations: 1.54 MB / 0.5752 GB, free: 3.141 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/1.769, allocations: 8.031 kB / 0.5752 GB, free: 3.133 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001181/1.769, allocations: 119.4 kB / 0.5753 GB, free: 3.008 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/1.769, allocations: 72.09 kB / 0.5754 GB, free: 2.938 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003531/1.769, allocations: 345.6 kB / 0.5757 GB, free: 2.562 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/1.77, allocations: 126.1 kB / 0.5758 GB, free: 2.422 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-05/1.77, allocations: 44 kB / 0.5759 GB, free: 2.379 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/1.771, allocations: 0.7796 MB / 0.5766 GB, free: 1.551 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/1.771, allocations: 3.938 kB / 0.5766 GB, free: 1.547 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.334e-05/1.771, allocations: 25.41 kB / 0.5767 GB, free: 1.523 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.26e-05/1.771, allocations: 39.97 kB / 0.5767 GB, free: 1.484 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/1.772, allocations: 0.5747 MB / 0.5773 GB, free: 0.9102 MB / 462.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.07362/1.846, allocations: 36.43 MB / 0.6128 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/1.847, allocations: 0.5424 MB / 0.6134 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005868/1.847, allocations: 358.8 kB / 0.6137 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07269/1.92, allocations: 33.59 MB / 0.6465 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/1.92, allocations: 34.56 kB / 0.6465 GB, free: 2.926 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=126): time 2.776e-06/1.92, allocations: 4 kB / 0.6465 GB, free: 2.922 MB / 0.5294 GB Notification: Performance of matching and sorting (n=126): time 0.01659/1.937, allocations: 3.289 MB / 0.6498 GB, free: 15.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/1.937, allocations: 59.34 kB / 0.6498 GB, free: 15.53 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003385/1.937, allocations: 336.4 kB / 0.6501 GB, free: 15.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/1.937, allocations: 29.7 kB / 0.6502 GB, free: 15.16 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/1.937, allocations: 233.1 kB / 0.6504 GB, free: 14.93 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002923/1.938, allocations: 405.8 kB / 0.6508 GB, free: 14.53 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/1.938, allocations: 134 kB / 0.6509 GB, free: 14.39 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000126/1.938, allocations: 370.8 kB / 0.6512 GB, free: 14.02 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005368/1.939, allocations: 273.6 kB / 0.6515 GB, free: 13.75 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000632/1.939, allocations: 397.2 kB / 0.6519 GB, free: 13.34 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/1.94, allocations: 0.7186 MB / 0.6526 GB, free: 12.59 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/1.94, allocations: 7.938 kB / 0.6526 GB, free: 12.58 MB / 0.545 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.004062/1.945, allocations: 1.283 MB / 0.6539 GB, free: 11.29 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/1.945, allocations: 4 kB / 0.6539 GB, free: 11.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/1.945, allocations: 8 kB / 0.6539 GB, free: 11.28 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003532/1.948, allocations: 1.386 MB / 0.6552 GB, free: 9.895 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.857e-05/1.948, allocations: 19.98 kB / 0.6552 GB, free: 9.875 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/1.95, allocations: 1.382 MB / 0.6566 GB, free: 8.465 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/1.951, allocations: 98.94 kB / 0.6567 GB, free: 8.367 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.214e-05/1.951, allocations: 23.98 kB / 0.6567 GB, free: 8.344 MB / 0.545 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.0002268/1.951, allocations: 174.5 kB / 0.6569 GB, free: 8.164 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.894e-05/1.951, allocations: 59.14 kB / 0.6569 GB, free: 8.105 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003941/1.955, allocations: 3.951 MB / 0.6608 GB, free: 4.02 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002619/1.958, allocations: 1.298 MB / 0.662 GB, free: 2.711 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/1.958, allocations: 4 kB / 0.6621 GB, free: 2.707 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/1.958, allocations: 15.91 kB / 0.6621 GB, free: 2.691 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006668/1.964, allocations: 2.931 MB / 0.6649 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/1.964, allocations: 0 / 0.6649 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002545/1.965, allocations: 95.84 kB / 0.665 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002199/1.967, allocations: 0.8557 MB / 0.6659 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/1.967, allocations: 19.98 kB / 0.6659 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002/1.969, allocations: 1.475 MB / 0.6673 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.969, allocations: 0 / 0.6673 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004429/1.973, allocations: 1.514 MB / 0.6688 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/1.974, allocations: 156 kB / 0.6689 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/1.974, allocations: 35.72 kB / 0.669 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00038/1.974, allocations: 32.22 kB / 0.669 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/1.974, allocations: 52.92 kB / 0.6691 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.791e-05/1.974, allocations: 24 kB / 0.6691 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003879/1.975, allocations: 383.1 kB / 0.6694 GB, free: 11 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/1.975, allocations: 4 kB / 0.6695 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002383/1.977, allocations: 1.046 MB / 0.6705 GB, free: 9.945 MB / 0.5606 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.008922/1.986, allocations: 3.15 MB / 0.6736 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002666/1.989, allocations: 1.178 MB / 0.6747 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/1.989, allocations: 4 kB / 0.6747 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001129/1.99, allocations: 0.5354 MB / 0.6752 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/1.992, allocations: 432 kB / 0.6756 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01155/2.004, allocations: 6.603 MB / 0.6821 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/2.004, allocations: 0.9986 MB / 0.6831 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002971/2.004, allocations: 60.83 kB / 0.6831 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002924/2.005, allocations: 307.3 kB / 0.6834 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of SimCode: time 7.52e-07/2.005, allocations: 0 / 0.6834 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2202/2.225, allocations: 58.67 MB / 0.7407 GB, free: 200.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/14.67, allocations: 13.05 kB / 0.7407 GB, free: 200.2 MB / 0.5762 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)