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.7832/0.7832, allocations: 150.9 MB / 166.4 MB, free: 14.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000339/0.0003391, allocations: 15.98 kB / 204.8 MB, free: 9.574 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1591, allocations: 31.33 MB / 236.1 MB, free: 5.371 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.559/1.718, allocations: 296.1 MB / 0.5197 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02643/1.745, allocations: 22.95 MB / 0.5422 GB, free: 4.902 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003959/1.745, allocations: 4 kB / 0.5422 GB, free: 4.898 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.0004857/1.746, allocations: 177 kB / 0.5423 GB, free: 4.727 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004653/1.746, allocations: 261.1 kB / 0.5426 GB, free: 4.473 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.01777/1.764, allocations: 7.233 MB / 0.5496 GB, free: 13.27 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001254/1.765, allocations: 0.9725 MB / 0.5506 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003489/1.766, allocations: 290.6 kB / 0.5509 GB, free: 12.02 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003742/1.766, allocations: 382.6 kB / 0.5512 GB, free: 11.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003266/1.766, allocations: 330.4 kB / 0.5515 GB, free: 11.32 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.034e-05/1.766, allocations: 54.22 kB / 0.5516 GB, free: 11.27 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02302/1.789, allocations: 15.39 MB / 0.5666 GB, free: 11.86 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002123/1.79, allocations: 127.5 kB / 0.5667 GB, free: 11.73 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005634/1.79, allocations: 358.2 kB / 0.5671 GB, free: 11.38 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01561/1.806, allocations: 6.927 MB / 0.5739 GB, free: 4.441 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/1.806, allocations: 0 / 0.5739 GB, free: 4.441 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.134e-06/1.806, allocations: 3.938 kB / 0.5739 GB, free: 4.438 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/1.806, allocations: 4 kB / 0.5739 GB, free: 4.434 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.004581/1.811, allocations: 1.536 MB / 0.5754 GB, free: 2.848 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/1.811, allocations: 12.03 kB / 0.5754 GB, free: 2.836 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001166/1.811, allocations: 119.4 kB / 0.5755 GB, free: 2.711 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/1.811, allocations: 68.09 kB / 0.5755 GB, free: 2.645 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000359/1.811, allocations: 341.6 kB / 0.5759 GB, free: 2.273 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001932/1.811, allocations: 126.1 kB / 0.576 GB, free: 2.133 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.327e-05/1.812, allocations: 44 kB / 0.576 GB, free: 2.09 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/1.813, allocations: 0.7796 MB / 0.5768 GB, free: 1.262 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/1.813, allocations: 7.938 kB / 0.5768 GB, free: 1.254 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.122e-05/1.813, allocations: 20 kB / 0.5768 GB, free: 1.234 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.285e-05/1.813, allocations: 43.47 kB / 0.5769 GB, free: 1.195 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009945/1.814, allocations: 0.5747 MB / 0.5774 GB, free: 0.6211 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.07106/1.885, allocations: 36.64 MB / 0.6132 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/1.886, allocations: 0.5381 MB / 0.6137 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006887/1.887, allocations: 362.7 kB / 0.6141 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07471/1.962, allocations: 33.82 MB / 0.6471 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/1.962, allocations: 38.56 kB / 0.6471 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=126): time 2.434e-06/1.962, allocations: 0 / 0.6471 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of matching and sorting (n=126): time 0.01747/1.979, allocations: 3.293 MB / 0.6504 GB, free: 14.86 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/1.979, allocations: 55.41 kB / 0.6504 GB, free: 14.8 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004577/1.98, allocations: 332.4 kB / 0.6507 GB, free: 14.46 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.376e-05/1.98, allocations: 33.7 kB / 0.6508 GB, free: 14.43 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/1.98, allocations: 229.2 kB / 0.651 GB, free: 14.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003375/1.981, allocations: 405.7 kB / 0.6514 GB, free: 13.79 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002129/1.981, allocations: 134 kB / 0.6515 GB, free: 13.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001556/1.981, allocations: 370.8 kB / 0.6518 GB, free: 13.29 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006072/1.982, allocations: 281.6 kB / 0.6521 GB, free: 13.01 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006654/1.982, allocations: 397.2 kB / 0.6525 GB, free: 12.59 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/1.983, allocations: 0.7186 MB / 0.6532 GB, free: 11.85 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/1.984, allocations: 7.938 kB / 0.6532 GB, free: 11.84 MB / 0.545 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.004329/1.988, allocations: 1.279 MB / 0.6545 GB, free: 10.55 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/1.988, allocations: 8 kB / 0.6545 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/1.988, allocations: 0 / 0.6545 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003718/1.992, allocations: 1.386 MB / 0.6558 GB, free: 9.156 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/1.992, allocations: 19.98 kB / 0.6558 GB, free: 9.137 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/1.994, allocations: 1.393 MB / 0.6572 GB, free: 7.715 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004435/1.994, allocations: 83.02 kB / 0.6573 GB, free: 7.633 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.691e-05/1.995, allocations: 23.98 kB / 0.6573 GB, free: 7.609 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.0002671/1.995, allocations: 177.7 kB / 0.6575 GB, free: 7.426 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/1.995, allocations: 59.16 kB / 0.6575 GB, free: 7.367 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004174/1.999, allocations: 3.943 MB / 0.6614 GB, free: 3.289 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002709/2.002, allocations: 1.306 MB / 0.6626 GB, free: 1.973 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/2.002, allocations: 128 / 0.6626 GB, free: 1.973 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/2.002, allocations: 11.92 kB / 0.6627 GB, free: 1.961 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006914/2.009, allocations: 2.878 MB / 0.6655 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/2.009, allocations: 0 / 0.6655 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/2.009, allocations: 99.83 kB / 0.6656 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002287/2.011, allocations: 0.8557 MB / 0.6664 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.422e-05/2.011, allocations: 16 kB / 0.6664 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002171/2.014, allocations: 1.475 MB / 0.6679 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/2.014, allocations: 0 / 0.6679 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004757/2.018, allocations: 1.519 MB / 0.6693 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002473/2.019, allocations: 159.9 kB / 0.6695 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/2.019, allocations: 31.78 kB / 0.6695 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004406/2.019, allocations: 27.98 kB / 0.6695 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/2.019, allocations: 52.92 kB / 0.6696 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.267e-05/2.019, allocations: 23.98 kB / 0.6696 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004482/2.02, allocations: 387.1 kB / 0.67 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.91e-07/2.02, allocations: 0 / 0.67 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002973/2.023, allocations: 1.05 MB / 0.671 GB, free: 9.262 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.009899/2.033, allocations: 3.146 MB / 0.6741 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002378/2.035, allocations: 1.151 MB / 0.6752 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/2.035, allocations: 0 / 0.6752 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001165/2.036, allocations: 0.5277 MB / 0.6757 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002108/2.039, allocations: 435.9 kB / 0.6761 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/2.052, allocations: 6.571 MB / 0.6826 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006381/2.053, allocations: 0.9948 MB / 0.6835 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000314/2.053, allocations: 68.81 kB / 0.6836 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003305/2.053, allocations: 303.3 kB / 0.6839 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of SimCode: time 6.21e-07/2.053, allocations: 0 / 0.6839 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.24/2.293, allocations: 58.59 MB / 0.7411 GB, free: 199.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/16.7, allocations: 9.781 kB / 0.7411 GB, free: 199.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticWaterWaterExchanger_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticWaterWaterExchanger.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.pipe 2>&1)