Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Properties.WaterSteamSimple.Validation.calculette_h.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.Properties.WaterSteamSimple.Validation.calculette_h,fileNamePrefix="ThermoSysPro_ThermoSysPro_Properties_WaterSteamSimple_Validation_calculette_h",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Properties.WaterSteamSimple.Validation.calculette_h,fileNamePrefix="ThermoSysPro_ThermoSysPro_Properties_WaterSteamSimple_Validation_calculette_h",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.8142/0.8142, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003086/0.0003086, allocations: 15.09 kB / 236.6 MB, free: 2.016 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05866/0.05898, allocations: 31.34 MB / 267.9 MB, free: 7.582 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.Properties.WaterSteamSimple.Validation.calculette_h): time 1.65/1.709, allocations: 294 MB / 0.5487 GB, free: 13.75 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03984/1.749, allocations: 30.05 MB / 0.5781 GB, free: 15.58 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.358e-05/1.749, allocations: 0 / 0.5781 GB, free: 15.58 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005076/1.75, allocations: 190.5 kB / 0.5782 GB, free: 15.39 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001499/1.75, allocations: 47.75 kB / 0.5783 GB, free: 15.35 MB / 478.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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp 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/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp 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/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der 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/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der 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.02499/1.775, allocations: 8.06 MB / 0.5862 GB, free: 7.277 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002794/1.775, allocations: 123.4 kB / 0.5863 GB, free: 7.156 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.959e-05/1.775, allocations: 15.98 kB / 0.5863 GB, free: 7.141 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/1.776, allocations: 71.53 kB / 0.5864 GB, free: 7.07 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.328e-05/1.776, allocations: 27.86 kB / 0.5864 GB, free: 7.043 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.535e-05/1.776, allocations: 4 kB / 0.5864 GB, free: 7.039 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03276/1.808, allocations: 14.65 MB / 0.6007 GB, free: 8.375 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.874e-05/1.808, allocations: 11.94 kB / 0.6007 GB, free: 8.363 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/1.809, allocations: 43.72 kB / 0.6007 GB, free: 8.32 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01957/1.828, allocations: 7.2 MB / 0.6078 GB, free: 1.102 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/1.828, allocations: 0 / 0.6078 GB, free: 1.102 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.014e-06/1.828, allocations: 0 / 0.6078 GB, free: 1.102 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/1.828, allocations: 4 kB / 0.6078 GB, free: 1.098 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.003891/1.832, allocations: 1.184 MB / 0.6089 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.113e-05/1.832, allocations: 12.03 kB / 0.6089 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.368e-05/1.832, allocations: 38.56 kB / 0.609 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.305e-05/1.832, allocations: 11.88 kB / 0.609 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/1.832, allocations: 174.9 kB / 0.6092 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/1.832, allocations: 11.94 kB / 0.6092 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/1.832, allocations: 0 / 0.6092 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003518/1.833, allocations: 127.5 kB / 0.6093 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/1.833, allocations: 7.922 kB / 0.6093 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/1.833, allocations: 4 kB / 0.6093 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/1.833, allocations: 11.92 kB / 0.6093 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.381e-05/1.833, allocations: 51.92 kB / 0.6094 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03872/1.872, allocations: 15.57 MB / 0.6246 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/1.872, allocations: 86.5 kB / 0.6247 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.269e-05/1.872, allocations: 56.91 kB / 0.6247 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0814/1.953, allocations: 40.66 MB / 0.6644 GB, free: 0.9492 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/1.954, allocations: 42.5 kB / 0.6645 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of pre-optimization done (n=23): time 2.124e-06/1.954, allocations: 0 / 0.6645 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.0004258/1.954, allocations: 188.8 kB / 0.6646 GB, free: 0.7109 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/1.954, allocations: 55.34 kB / 0.6647 GB, free: 0.6445 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/1.954, allocations: 113.8 kB / 0.6648 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/1.954, allocations: 29.7 kB / 0.6648 GB, free: 500 kB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.318e-05/1.954, allocations: 104.4 kB / 0.6649 GB, free: 392 kB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.597e-05/1.954, allocations: 71.34 kB / 0.665 GB, free: 320 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.962e-05/1.954, allocations: 37.7 kB / 0.665 GB, free: 276 kB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001182/1.955, allocations: 322.8 kB / 0.6653 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.27e-05/1.955, allocations: 40.22 kB / 0.6654 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.376e-05/1.955, allocations: 81.59 kB / 0.6655 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001837/1.955, allocations: 153 kB / 0.6656 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/1.955, allocations: 0 / 0.6656 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002615/1.955, allocations: 172.2 kB / 0.6658 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/1.955, allocations: 13.66 kB / 0.6658 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/1.955, allocations: 0 / 0.6658 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/1.955, allocations: 4 kB / 0.6658 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.367e-05/1.955, allocations: 19.92 kB / 0.6658 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/1.955, allocations: 0 / 0.6658 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.412e-05/1.955, allocations: 19.84 kB / 0.6658 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/1.955, allocations: 4 kB / 0.6658 GB, free: 15.41 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 initialization (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001013/1.955, allocations: 122.2 kB / 0.6659 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.259e-05/1.956, allocations: 7.953 kB / 0.6659 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002341/1.956, allocations: 162.3 kB / 0.6661 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/1.956, allocations: 4.406 kB / 0.6661 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/1.956, allocations: 192 / 0.6661 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/1.956, allocations: 0 / 0.6661 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/1.956, allocations: 213.5 kB / 0.6663 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/1.956, allocations: 0 / 0.6663 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.21e-05/1.956, allocations: 11.88 kB / 0.6663 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/1.956, allocations: 0 / 0.6663 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/1.956, allocations: 3.984 kB / 0.6663 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/1.956, allocations: 7.938 kB / 0.6663 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.956, allocations: 0 / 0.6663 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002008/1.956, allocations: 168.4 kB / 0.6665 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.491e-05/1.956, allocations: 92.95 kB / 0.6666 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/1.956, allocations: 0 / 0.6666 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.063e-05/1.956, allocations: 3.938 kB / 0.6666 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.393e-05/1.956, allocations: 8 kB / 0.6666 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/1.956, allocations: 0 / 0.6666 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.673e-05/1.956, allocations: 91.27 kB / 0.6667 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/1.956, allocations: 4 kB / 0.6667 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002942/1.959, allocations: 1.002 MB / 0.6677 GB, free: 13.43 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 (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00587/1.965, allocations: 2.113 MB / 0.6697 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002753/1.966, allocations: 119.8 kB / 0.6698 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/1.966, allocations: 4 kB / 0.6698 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.931e-05/1.966, allocations: 59.92 kB / 0.6699 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/1.966, allocations: 60.45 kB / 0.67 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/1.969, allocations: 2.01 MB / 0.6719 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/1.97, allocations: 0.7002 MB / 0.6726 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.508e-05/1.97, allocations: 11.98 kB / 0.6726 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.77e-05/1.97, allocations: 27.42 kB / 0.6726 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of SimCode: time 2.2e-07/1.97, allocations: 0 / 0.6726 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07381/2.044, allocations: 39.14 MB / 0.7109 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/12.72, allocations: 0 / 0.7109 GB, free: 1.105 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Properties.WaterSteamSimple.Validation.calculette_h.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Properties.WaterSteamSimple.Validation.calculette_h.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Properties.WaterSteamSimple.Validation.calculette_h.pipe >> ../files/ThermoSysPro_ThermoSysPro.Properties.WaterSteamSimple.Validation.calculette_h.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Properties.WaterSteamSimple.Validation.calculette_h_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 ThermoSysPro_ThermoSysPro_Properties_WaterSteamSimple_Validation_calculette_h.fmu > ThermoSysPro_ThermoSysPro.Properties.WaterSteamSimple.Validation.calculette_h.pipe 2>&1)