Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",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.8582/0.8582, allocations: 150.9 MB / 166.4 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003546, allocations: 15.98 kB / 204.6 MB, free: 9.66 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.181, allocations: 31.33 MB / 236 MB, free: 5.395 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.Book.SimpleExamples.PressureLoss.TestDiaphragm): time 1.625/1.806, allocations: 294.6 MB / 0.5181 GB, free: 13.37 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03746/1.844, allocations: 34.67 MB / 0.552 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000222/1.844, allocations: 4 kB / 0.552 GB, free: 10.82 MB / 446.1 MB [/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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Diaphragm.mo:30:3-32:42:writable] Warning: Connector C1 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/PressureLosses/Diaphragm.mo:33:3-35:37:writable] Warning: Connector C2 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.0004025/1.844, allocations: 108.6 kB / 0.5521 GB, free: 10.71 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003057/1.845, allocations: 95.23 kB / 0.5522 GB, free: 10.62 MB / 446.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.02688/1.872, allocations: 9.636 MB / 0.5616 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004855/1.872, allocations: 362.8 kB / 0.562 GB, free: 0.625 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002365/1.872, allocations: 115.4 kB / 0.5621 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002554/1.873, allocations: 151.3 kB / 0.5622 GB, free: 372 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/1.873, allocations: 111.4 kB / 0.5623 GB, free: 260 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.977e-05/1.873, allocations: 16 kB / 0.5623 GB, free: 244 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02982/1.903, allocations: 17.74 MB / 0.5797 GB, free: 14.47 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.397e-05/1.903, allocations: 43.84 kB / 0.5797 GB, free: 14.43 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/1.903, allocations: 135.3 kB / 0.5798 GB, free: 14.3 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01978/1.923, allocations: 8.476 MB / 0.5881 GB, free: 5.801 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/1.923, allocations: 7.938 kB / 0.5881 GB, free: 5.793 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.924e-06/1.923, allocations: 4 kB / 0.5881 GB, free: 5.789 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.288e-05/1.923, allocations: 0 / 0.5881 GB, free: 5.789 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.004196/1.927, allocations: 1.454 MB / 0.5895 GB, free: 4.285 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/1.927, allocations: 12.03 kB / 0.5895 GB, free: 4.273 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.055e-05/1.927, allocations: 62.53 kB / 0.5896 GB, free: 4.203 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.04e-05/1.927, allocations: 31.56 kB / 0.5896 GB, free: 4.172 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002316/1.928, allocations: 227.2 kB / 0.5899 GB, free: 3.91 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/1.928, allocations: 20.38 kB / 0.5899 GB, free: 3.887 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/1.928, allocations: 20 kB / 0.5899 GB, free: 3.867 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004359/1.928, allocations: 317 kB / 0.5902 GB, free: 3.523 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/1.928, allocations: 4 kB / 0.5902 GB, free: 3.52 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/1.928, allocations: 4 kB / 0.5902 GB, free: 3.516 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/1.928, allocations: 20.59 kB / 0.5902 GB, free: 3.496 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002541/1.928, allocations: 173 kB / 0.5904 GB, free: 3.328 MB / 478.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.03874/1.967, allocations: 18.06 MB / 0.608 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004862/1.968, allocations: 146.6 kB / 0.6082 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/1.968, allocations: 88.84 kB / 0.6083 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1568/2.125, allocations: 77.46 MB / 0.6839 GB, free: 8.895 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/2.125, allocations: 30.56 kB / 0.6839 GB, free: 8.855 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.415e-06/2.125, allocations: 0 / 0.6839 GB, free: 8.855 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0009366/2.126, allocations: 423.4 kB / 0.6843 GB, free: 8.414 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/2.126, allocations: 81.11 kB / 0.6844 GB, free: 8.316 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/2.126, allocations: 223.1 kB / 0.6846 GB, free: 8.09 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/2.126, allocations: 25.7 kB / 0.6846 GB, free: 8.059 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/2.126, allocations: 160.3 kB / 0.6848 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.383e-05/2.126, allocations: 106.4 kB / 0.6849 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.188e-05/2.126, allocations: 49.7 kB / 0.6849 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001204/2.126, allocations: 334.8 kB / 0.6853 GB, free: 7.398 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/2.127, allocations: 79.91 kB / 0.6853 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/2.127, allocations: 135.8 kB / 0.6855 GB, free: 7.168 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000268/2.127, allocations: 229.2 kB / 0.6857 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/2.127, allocations: 0 / 0.6857 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004646/2.127, allocations: 309.9 kB / 0.686 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/2.127, allocations: 4 kB / 0.686 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/2.128, allocations: 4 kB / 0.686 GB, free: 6.605 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009296/2.128, allocations: 137.8 kB / 0.6861 GB, free: 6.469 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.806e-05/2.129, allocations: 19.92 kB / 0.6861 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005064/2.129, allocations: 0.6108 MB / 0.6867 GB, free: 5.812 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/2.129, allocations: 35.58 kB / 0.6868 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/2.129, allocations: 12 kB / 0.6868 GB, free: 5.766 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001261/2.129, allocations: 133.8 kB / 0.6869 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.021e-05/2.129, allocations: 19.72 kB / 0.6869 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009091/2.13, allocations: 0.6043 MB / 0.6875 GB, free: 4.934 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005256/2.131, allocations: 237.7 kB / 0.6877 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/2.131, allocations: 3.938 kB / 0.6877 GB, free: 4.691 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/2.131, allocations: 0 / 0.6877 GB, free: 4.691 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/2.132, allocations: 0.7437 MB / 0.6885 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/2.132, allocations: 0 / 0.6885 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.598e-05/2.132, allocations: 23.92 kB / 0.6885 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003424/2.132, allocations: 108.8 kB / 0.6886 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/2.132, allocations: 4 kB / 0.6886 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004516/2.133, allocations: 0.6396 MB / 0.6892 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/2.133, allocations: 0 / 0.6892 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006424/2.134, allocations: 343.9 kB / 0.6896 GB, free: 2.734 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.396e-05/2.134, allocations: 108.8 kB / 0.6897 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/2.134, allocations: 19.83 kB / 0.6897 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/2.134, allocations: 4 kB / 0.6897 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/2.134, allocations: 11.98 kB / 0.6897 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/2.134, allocations: 4 kB / 0.6897 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000234/2.134, allocations: 237.9 kB / 0.6899 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/2.134, allocations: 0 / 0.6899 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003209/2.137, allocations: 1.21 MB / 0.6911 GB, free: 1.129 MB / 0.5762 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 (13): * Single equations (assignments): 12 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1771/2.314, allocations: 2.542 MB / 0.6936 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008124/2.315, allocations: 256.1 kB / 0.6938 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/2.315, allocations: 1.438 kB / 0.6938 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002829/2.316, allocations: 100.8 kB / 0.6939 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008243/2.316, allocations: 127.5 kB / 0.6941 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004683/2.321, allocations: 3.058 MB / 0.697 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/2.321, allocations: 0.7674 MB / 0.6978 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001601/2.322, allocations: 28.94 kB / 0.6978 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/2.322, allocations: 95.86 kB / 0.6979 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of SimCode: time 6.62e-07/2.322, allocations: 1 kB / 0.6979 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08051/2.402, allocations: 48.2 MB / 0.745 GB, free: 197.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/14.59, allocations: 13.73 kB / 0.745 GB, free: 197.5 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm_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_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)