Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.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.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",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.7885/0.7885, allocations: 150.9 MB / 166.4 MB, free: 14.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003424, allocations: 11.98 kB / 204.6 MB, free: 9.668 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1514, allocations: 31.33 MB / 236 MB, free: 5.383 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.TestBend): time 1.483/1.634, allocations: 294.8 MB / 0.5183 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0364/1.671, allocations: 35.08 MB / 0.5526 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003751/1.671, allocations: 0 / 0.5526 GB, free: 10.27 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/Bend.mo:55:3-57: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/Bend.mo:58:3-60:43: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.0007874/1.672, allocations: 278.9 kB / 0.5528 GB, free: 9.996 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006162/1.673, allocations: 258.9 kB / 0.5531 GB, free: 9.742 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.7, allocations: 9.815 MB / 0.5627 GB, free: 15.93 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006399/1.7, allocations: 498.8 kB / 0.5631 GB, free: 15.44 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/1.7, allocations: 183.7 kB / 0.5633 GB, free: 15.26 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/1.701, allocations: 239.1 kB / 0.5635 GB, free: 15.02 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002743/1.701, allocations: 295.1 kB / 0.5638 GB, free: 14.73 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.098e-05/1.701, allocations: 24 kB / 0.5638 GB, free: 14.71 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02612/1.727, allocations: 17.82 MB / 0.5812 GB, free: 12.87 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000196/1.727, allocations: 175.4 kB / 0.5814 GB, free: 12.7 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002523/1.728, allocations: 274.2 kB / 0.5817 GB, free: 12.43 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01702/1.745, allocations: 8.869 MB / 0.5903 GB, free: 3.535 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/1.745, allocations: 0 / 0.5903 GB, free: 3.535 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.302e-06/1.745, allocations: 0 / 0.5903 GB, free: 3.535 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/1.745, allocations: 0 / 0.5903 GB, free: 3.535 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00389/1.749, allocations: 1.823 MB / 0.5921 GB, free: 1.66 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/1.749, allocations: 12.03 kB / 0.5921 GB, free: 1.648 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.504e-05/1.749, allocations: 66.53 kB / 0.5922 GB, free: 1.574 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.317e-05/1.749, allocations: 67.16 kB / 0.5922 GB, free: 1.508 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005043/1.749, allocations: 494.2 kB / 0.5927 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/1.749, allocations: 20.56 kB / 0.5927 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/1.749, allocations: 27.94 kB / 0.5928 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005078/1.75, allocations: 441.2 kB / 0.5932 GB, free: 480 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/1.75, allocations: 0 / 0.5932 GB, free: 480 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/1.75, allocations: 12 kB / 0.5932 GB, free: 468 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/1.75, allocations: 8 kB / 0.5932 GB, free: 460 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003803/1.75, allocations: 341.7 kB / 0.5935 GB, free: 116 kB / 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.03513/1.786, allocations: 18.58 MB / 0.6117 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005444/1.786, allocations: 174.6 kB / 0.6118 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/1.786, allocations: 105.4 kB / 0.6119 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.143/1.929, allocations: 77.48 MB / 0.6876 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/1.929, allocations: 34.56 kB / 0.6876 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.365e-06/1.929, allocations: 0 / 0.6876 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.001648/1.931, allocations: 0.5957 MB / 0.6882 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/1.931, allocations: 110.7 kB / 0.6883 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/1.932, allocations: 1.004 MB / 0.6893 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/1.932, allocations: 25.7 kB / 0.6893 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/1.932, allocations: 300.2 kB / 0.6896 GB, free: 2.945 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.105e-05/1.933, allocations: 134 kB / 0.6897 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-05/1.933, allocations: 65.59 kB / 0.6898 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001306/1.933, allocations: 382.7 kB / 0.6902 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/1.933, allocations: 156.4 kB / 0.6903 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002183/1.933, allocations: 239.1 kB / 0.6906 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003401/1.933, allocations: 336.7 kB / 0.6909 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/1.933, allocations: 0 / 0.6909 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000619/1.934, allocations: 0.5306 MB / 0.6914 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/1.934, allocations: 4 kB / 0.6914 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/1.934, allocations: 7.984 kB / 0.6914 GB, free: 1.039 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001494/1.936, allocations: 216.8 kB / 0.6916 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.598e-05/1.936, allocations: 27.92 kB / 0.6916 GB, free: 0.7969 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005554/1.936, allocations: 0.6747 MB / 0.6923 GB, free: 100 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/1.937, allocations: 39.59 kB / 0.6923 GB, free: 60 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/1.937, allocations: 16.05 kB / 0.6923 GB, free: 44 kB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.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 (18): * Single equations (assignments): 15 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.1398/2.076, allocations: 248.3 kB / 0.6926 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/2.076, allocations: 61.16 kB / 0.6926 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007777/2.077, allocations: 0.7061 MB / 0.6933 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002954/2.078, allocations: 244.4 kB / 0.6936 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/2.078, allocations: 2.359 kB / 0.6936 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/2.078, allocations: 3.328 kB / 0.6936 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/2.079, allocations: 0.9766 MB / 0.6945 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/2.079, allocations: 4.25 kB / 0.6945 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.488e-05/2.079, allocations: 19.78 kB / 0.6945 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000869/2.08, allocations: 176.1 kB / 0.6947 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/2.08, allocations: 6.719 kB / 0.6947 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004602/2.08, allocations: 0.7051 MB / 0.6954 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/2.08, allocations: 2.625 kB / 0.6954 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004109/2.08, allocations: 414.5 kB / 0.6958 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/2.081, allocations: 176.2 kB / 0.696 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.533e-05/2.081, allocations: 21.11 kB / 0.696 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001842/2.081, allocations: 9.453 kB / 0.696 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.893e-05/2.081, allocations: 16.98 kB / 0.696 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/2.081, allocations: 5.047 kB / 0.696 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008189/2.082, allocations: 0.8109 MB / 0.6968 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.5e-07/2.082, allocations: 0 / 0.6968 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002968/2.085, allocations: 1.252 MB / 0.698 GB, free: 224.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 11 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005415/2.09, allocations: 2.635 MB / 0.7006 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007951/2.091, allocations: 360.5 kB / 0.701 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/2.091, allocations: 7 kB / 0.701 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002577/2.091, allocations: 116.2 kB / 0.7011 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008385/2.092, allocations: 152.1 kB / 0.7012 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006664/2.099, allocations: 6.224 MB / 0.7073 GB, free: 221.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/2.099, allocations: 0.9312 MB / 0.7082 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001719/2.099, allocations: 61.7 kB / 0.7083 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/2.1, allocations: 234.9 kB / 0.7085 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of SimCode: time 5.51e-07/2.1, allocations: 1.875 kB / 0.7085 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07333/2.173, allocations: 54.19 MB / 0.7614 GB, free: 182.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/14.8, allocations: 3.391 kB / 0.7614 GB, free: 182.2 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend_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_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)