Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",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.7882/0.7882, allocations: 150.9 MB / 166.4 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003314, allocations: 11.98 kB / 204.6 MB, free: 9.668 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1536, 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.TestPipePressureLoss): time 1.531/1.684, allocations: 294.6 MB / 0.5182 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03714/1.722, allocations: 34.43 MB / 0.5518 GB, free: 11.09 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001868/1.722, allocations: 0 / 0.5518 GB, free: 11.09 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/PipePressureLoss.mo:35:3-37: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/PipePressureLoss.mo:38:3-40: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.0003512/1.722, allocations: 111.3 kB / 0.5519 GB, free: 10.98 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001818/1.722, allocations: 103.2 kB / 0.552 GB, free: 10.88 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.02197/1.744, allocations: 9.567 MB / 0.5613 GB, free: 1.312 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005265/1.745, allocations: 350.4 kB / 0.5617 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/1.745, allocations: 105.4 kB / 0.5618 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/1.745, allocations: 147.3 kB / 0.5619 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/1.746, allocations: 103.5 kB / 0.562 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.629e-05/1.746, allocations: 20 kB / 0.562 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02845/1.774, allocations: 17.67 MB / 0.5793 GB, free: 14.91 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.128e-05/1.774, allocations: 51.78 kB / 0.5793 GB, free: 14.86 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/1.774, allocations: 127.4 kB / 0.5795 GB, free: 14.73 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01655/1.791, allocations: 8.429 MB / 0.5877 GB, free: 6.285 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/1.791, allocations: 0 / 0.5877 GB, free: 6.285 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.713e-06/1.791, allocations: 0 / 0.5877 GB, free: 6.285 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/1.791, allocations: 3.938 kB / 0.5877 GB, free: 6.281 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003699/1.795, allocations: 1.439 MB / 0.5891 GB, free: 4.793 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/1.795, allocations: 8.031 kB / 0.5891 GB, free: 4.785 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.897e-05/1.795, allocations: 70.47 kB / 0.5892 GB, free: 4.707 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.31e-05/1.795, allocations: 31.62 kB / 0.5892 GB, free: 4.676 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/1.795, allocations: 227.5 kB / 0.5894 GB, free: 4.414 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/1.795, allocations: 16.44 kB / 0.5894 GB, free: 4.398 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.436e-05/1.795, allocations: 20 kB / 0.5895 GB, free: 4.379 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003756/1.795, allocations: 295.3 kB / 0.5897 GB, free: 4.059 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/1.795, allocations: 4 kB / 0.5897 GB, free: 4.055 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/1.795, allocations: 9.594 kB / 0.5897 GB, free: 4.047 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/1.796, allocations: 11.98 kB / 0.5898 GB, free: 4.035 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002806/1.796, allocations: 169 kB / 0.5899 GB, free: 3.871 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.03666/1.832, allocations: 18.01 MB / 0.6075 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/1.833, allocations: 134.7 kB / 0.6076 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/1.833, allocations: 84.84 kB / 0.6077 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1498/1.983, allocations: 77.26 MB / 0.6832 GB, free: 9.727 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/1.983, allocations: 42.48 kB / 0.6832 GB, free: 9.676 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 3.076e-06/1.983, allocations: 8 kB / 0.6832 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001057/1.984, allocations: 435.4 kB / 0.6836 GB, free: 9.215 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/1.984, allocations: 55.41 kB / 0.6837 GB, free: 9.148 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/1.984, allocations: 227 kB / 0.6839 GB, free: 8.918 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/1.984, allocations: 25.7 kB / 0.6839 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.38e-05/1.984, allocations: 148.5 kB / 0.6841 GB, free: 8.734 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.431e-05/1.984, allocations: 106.4 kB / 0.6842 GB, free: 8.629 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.711e-05/1.984, allocations: 61.53 kB / 0.6842 GB, free: 8.562 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001397/1.985, allocations: 334.8 kB / 0.6845 GB, free: 8.227 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/1.985, allocations: 67.98 kB / 0.6846 GB, free: 8.16 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/1.985, allocations: 124.1 kB / 0.6847 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002611/1.985, allocations: 208.6 kB / 0.6849 GB, free: 7.805 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/1.985, allocations: 0 / 0.6849 GB, free: 7.805 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004123/1.986, allocations: 307.2 kB / 0.6852 GB, free: 7.496 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/1.986, allocations: 4 kB / 0.6852 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/1.986, allocations: 0 / 0.6852 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000877/1.987, allocations: 168.8 kB / 0.6854 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.529e-05/1.987, allocations: 4 kB / 0.6854 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006049/1.987, allocations: 0.6396 MB / 0.686 GB, free: 6.656 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/1.987, allocations: 23.75 kB / 0.686 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/1.987, allocations: 8 kB / 0.686 GB, free: 6.625 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (pipePressureLoss.C2.b,pipePressureLoss.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 (11): * 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: 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001379/1.987, allocations: 137.8 kB / 0.6862 GB, free: 6.48 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.495e-05/1.988, allocations: 21.73 kB / 0.6862 GB, free: 6.461 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007117/1.988, allocations: 0.6042 MB / 0.6868 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003404/1.989, allocations: 228.5 kB / 0.687 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/1.989, allocations: 0 / 0.687 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.989, allocations: 0 / 0.687 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009077/1.99, allocations: 0.7321 MB / 0.6877 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/1.99, allocations: 7.984 kB / 0.6877 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.483e-05/1.99, allocations: 12 kB / 0.6877 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003816/1.99, allocations: 117.7 kB / 0.6879 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/1.99, allocations: 0 / 0.6879 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004823/1.99, allocations: 0.6586 MB / 0.6885 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/1.991, allocations: 0 / 0.6885 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004457/1.991, allocations: 335.9 kB / 0.6888 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.61e-05/1.991, allocations: 112.8 kB / 0.6889 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.183e-05/1.991, allocations: 15.84 kB / 0.6889 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.659e-05/1.991, allocations: 4 kB / 0.6889 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.53e-05/1.991, allocations: 7.984 kB / 0.689 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/1.991, allocations: 4 kB / 0.689 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002297/1.992, allocations: 237.9 kB / 0.6892 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/1.992, allocations: 4 kB / 0.6892 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003129/1.995, allocations: 1.187 MB / 0.6903 GB, free: 2.02 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 (11): * Single equations (assignments): 10 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1612/2.156, allocations: 2.489 MB / 0.6928 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006144/2.157, allocations: 238.4 kB / 0.693 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/2.157, allocations: 1.656 kB / 0.693 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002113/2.157, allocations: 94.95 kB / 0.6931 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00079/2.158, allocations: 125.1 kB / 0.6932 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004133/2.162, allocations: 3.017 MB / 0.6962 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/2.162, allocations: 0.7654 MB / 0.6969 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001222/2.162, allocations: 28.77 kB / 0.6969 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.577e-05/2.162, allocations: 92.56 kB / 0.697 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of SimCode: time 4.41e-07/2.162, allocations: 0 / 0.697 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06895/2.231, allocations: 47.68 MB / 0.7436 GB, free: 198.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/14.87, allocations: 17.38 kB / 0.7436 GB, free: 198.3 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss_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_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)