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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8324/0.8324, allocations: 153.8 MB / 170.2 MB, free: 13.78 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004764/0.0004764, allocations: 20.97 kB / 246.3 MB, free: 14.86 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06163/0.06211, allocations: 33.35 MB / 279.7 MB, free: 15.12 MB / 238.1 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger): time 1.709/1.771, allocations: 308.9 MB / 0.5748 GB, free: 9 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03342/1.804, allocations: 23.11 MB / 0.5974 GB, free: 1.797 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004531/1.805, allocations: 8 kB / 0.5974 GB, free: 1.789 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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.0006184/1.805, allocations: 190.5 kB / 0.5975 GB, free: 1.605 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000841/1.806, allocations: 325.8 kB / 0.5979 GB, free: 1.285 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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.02032/1.826, allocations: 7.326 MB / 0.605 GB, free: 9.961 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001399/1.828, allocations: 0.9802 MB / 0.606 GB, free: 8.977 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004098/1.828, allocations: 236.8 kB / 0.6062 GB, free: 8.738 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004754/1.829, allocations: 398.5 kB / 0.6066 GB, free: 8.348 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003692/1.829, allocations: 326.5 kB / 0.6069 GB, free: 8.027 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.559e-05/1.829, allocations: 52 kB / 0.6069 GB, free: 7.977 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02526/1.854, allocations: 15.4 MB / 0.622 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002/1.855, allocations: 123.5 kB / 0.6221 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004682/1.855, allocations: 362.2 kB / 0.6224 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01377/1.869, allocations: 6.956 MB / 0.6292 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/1.869, allocations: 0 / 0.6292 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.804e-06/1.869, allocations: 4 kB / 0.6292 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.411e-05/1.869, allocations: 0 / 0.6292 GB, free: 1.105 MB / 0.4981 GB 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.004385/1.873, allocations: 1.593 MB / 0.6308 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/1.873, allocations: 8.031 kB / 0.6308 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001379/1.873, allocations: 119.4 kB / 0.6309 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/1.874, allocations: 80.42 kB / 0.631 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004075/1.874, allocations: 346.7 kB / 0.6313 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002086/1.874, allocations: 130.1 kB / 0.6314 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.971e-05/1.874, allocations: 44 kB / 0.6315 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/1.876, allocations: 0.7874 MB / 0.6322 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/1.876, allocations: 0 / 0.6322 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.797e-05/1.876, allocations: 20 kB / 0.6323 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.772e-05/1.876, allocations: 35.97 kB / 0.6323 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/1.877, allocations: 0.5747 MB / 0.6329 GB, free: 13.22 MB / 0.5137 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.07929/1.956, allocations: 36.64 MB / 0.6686 GB, free: 4.824 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/1.958, allocations: 471.3 kB / 0.6691 GB, free: 4.355 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006184/1.958, allocations: 270.7 kB / 0.6694 GB, free: 4.09 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08484/2.043, allocations: 36.39 MB / 0.7049 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/2.043, allocations: 30.86 kB / 0.7049 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=126): time 2.776e-06/2.043, allocations: 4 kB / 0.7049 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of matching and sorting (n=126): time 0.01784/2.061, allocations: 3.246 MB / 0.7081 GB, free: 8.57 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/2.061, allocations: 55.41 kB / 0.7082 GB, free: 8.504 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005059/2.061, allocations: 340.4 kB / 0.7085 GB, free: 8.164 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/2.061, allocations: 29.7 kB / 0.7085 GB, free: 8.129 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/2.062, allocations: 229.8 kB / 0.7087 GB, free: 7.898 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004053/2.062, allocations: 432 kB / 0.7091 GB, free: 7.473 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/2.062, allocations: 134 kB / 0.7093 GB, free: 7.336 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000208/2.063, allocations: 370.8 kB / 0.7096 GB, free: 6.965 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006432/2.063, allocations: 281.6 kB / 0.7099 GB, free: 6.688 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007322/2.064, allocations: 389.1 kB / 0.7103 GB, free: 6.285 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/2.065, allocations: 0.7225 MB / 0.711 GB, free: 5.531 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/2.065, allocations: 3.938 kB / 0.711 GB, free: 5.527 MB / 0.5919 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.004427/2.07, allocations: 1.228 MB / 0.7122 GB, free: 4.289 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/2.07, allocations: 8 kB / 0.7122 GB, free: 4.281 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/2.07, allocations: 4 kB / 0.7122 GB, free: 4.277 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003987/2.074, allocations: 1.379 MB / 0.7135 GB, free: 2.895 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/2.074, allocations: 23.92 kB / 0.7135 GB, free: 2.871 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002484/2.076, allocations: 1.391 MB / 0.7149 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004532/2.077, allocations: 87.3 kB / 0.715 GB, free: 1.367 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-05/2.077, allocations: 23.98 kB / 0.715 GB, free: 1.344 MB / 0.5919 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.000308/2.077, allocations: 187 kB / 0.7152 GB, free: 1.152 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/2.077, allocations: 55.58 kB / 0.7152 GB, free: 1.098 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1859/2.263, allocations: 3.822 MB / 0.719 GB, free: 216.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002586/2.266, allocations: 1.239 MB / 0.7202 GB, free: 216.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/2.266, allocations: 0 / 0.7202 GB, free: 216.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/2.266, allocations: 5.906 kB / 0.7202 GB, free: 216.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005742/2.272, allocations: 2.831 MB / 0.723 GB, free: 216 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/2.272, allocations: 3.047 kB / 0.723 GB, free: 216 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/2.272, allocations: 103.9 kB / 0.7231 GB, free: 216 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002007/2.274, allocations: 0.8545 MB / 0.7239 GB, free: 215.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.051e-05/2.274, allocations: 17.77 kB / 0.7239 GB, free: 215.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/2.276, allocations: 1.481 MB / 0.7254 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/2.276, allocations: 0 / 0.7254 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004123/2.28, allocations: 1.46 MB / 0.7268 GB, free: 214.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/2.28, allocations: 163.5 kB / 0.7269 GB, free: 214.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.737e-05/2.28, allocations: 31.3 kB / 0.727 GB, free: 214.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003471/2.28, allocations: 31.34 kB / 0.727 GB, free: 214.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/2.28, allocations: 59.31 kB / 0.7271 GB, free: 214.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.588e-05/2.28, allocations: 27.59 kB / 0.7271 GB, free: 214.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003631/2.281, allocations: 384 kB / 0.7274 GB, free: 214.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/2.281, allocations: 0 / 0.7274 GB, free: 214.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002493/2.283, allocations: 1.06 MB / 0.7285 GB, free: 214.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 (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.007978/2.291, allocations: 3.117 MB / 0.7315 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001806/2.293, allocations: 1.069 MB / 0.7326 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/2.293, allocations: 1.594 kB / 0.7326 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009156/2.294, allocations: 465.9 kB / 0.733 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/2.296, allocations: 430.5 kB / 0.7334 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009349/2.305, allocations: 6.523 MB / 0.7398 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/2.306, allocations: 0.9937 MB / 0.7408 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002509/2.306, allocations: 66.19 kB / 0.7408 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002265/2.306, allocations: 307.5 kB / 0.7411 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of SimCode: time 9.12e-07/2.306, allocations: 0 / 0.7411 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08161/2.388, allocations: 59.29 MB / 0.799 GB, free: 151.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.33/17.72, allocations: 14.58 kB / 0.799 GB, free: 151.9 MB / 0.5919 GB " [Timeout remaining time 642] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.919043942994904] Failed to read output from testmodel.py, exit status != 0: 17.990119731999584 17.998539241 16.127667386 Calling exit ...