Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_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.7691/0.7691, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003085/0.0003085, allocations: 12.53 kB / 236.5 MB, free: 2.062 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05331/0.05363, allocations: 31.34 MB / 267.9 MB, free: 7.629 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend): time 1.565/1.618, allocations: 295 MB / 0.5497 GB, free: 12.85 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5104/2.129, allocations: 190.5 MB / 0.7357 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002838/2.129, allocations: 8.531 kB / 0.7357 GB, free: 1.789 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:57:3-58:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:59:3-60:67:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.000415/2.129, allocations: 204.2 kB / 0.7359 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004199/2.13, allocations: 278.6 kB / 0.7362 GB, free: 1.789 MB / 0.5919 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03177/2.162, allocations: 12.52 MB / 0.7484 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008138/2.162, allocations: 0.5382 MB / 0.7489 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000296/2.163, allocations: 270.6 kB / 0.7492 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/2.163, allocations: 254.2 kB / 0.7494 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003348/2.163, allocations: 358.7 kB / 0.7498 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.473e-05/2.163, allocations: 41.44 kB / 0.7498 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03533/2.199, allocations: 21.08 MB / 0.7704 GB, free: 24 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002747/2.199, allocations: 204 kB / 0.7706 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000436/2.2, allocations: 331.3 kB / 0.7709 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02411/2.224, allocations: 10.79 MB / 0.7815 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/2.224, allocations: 0.875 kB / 0.7815 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.043e-06/2.224, allocations: 2.562 kB / 0.7815 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.919e-06/2.224, allocations: 1.875 kB / 0.7815 GB, free: 12.11 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.005067/2.229, allocations: 2.327 MB / 0.7837 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/2.229, allocations: 9.703 kB / 0.7837 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.22e-05/2.229, allocations: 80.95 kB / 0.7838 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/2.229, allocations: 90.03 kB / 0.7839 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006793/2.23, allocations: 0.557 MB / 0.7844 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/2.23, allocations: 32.31 kB / 0.7845 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.261e-05/2.23, allocations: 36.69 kB / 0.7845 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006164/2.23, allocations: 493.4 kB / 0.785 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/2.23, allocations: 1.938 kB / 0.785 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.046e-05/2.23, allocations: 15.88 kB / 0.785 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/2.231, allocations: 14.06 kB / 0.785 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005099/2.231, allocations: 418.5 kB / 0.7854 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008863/2.24, allocations: 6.695 MB / 0.7919 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004748/2.24, allocations: 115.5 kB / 0.7921 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.562e-05/2.24, allocations: 46.12 kB / 0.7921 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3147/2.555, allocations: 155.7 MB / 0.9441 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.212e-05/2.555, allocations: 38.56 kB / 0.9442 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.134e-06/2.555, allocations: 3.938 kB / 0.9442 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002246/2.558, allocations: 475.2 kB / 0.9446 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/2.558, allocations: 111.2 kB / 0.9447 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001641/2.559, allocations: 1.067 MB / 0.9458 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/2.559, allocations: 29.7 kB / 0.9458 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003304/2.56, allocations: 395.3 kB / 0.9462 GB, free: 8.184 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.158e-05/2.56, allocations: 43.69 kB / 0.9462 GB, free: 8.141 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/2.56, allocations: 77.59 kB / 0.9463 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001803/2.56, allocations: 378.7 kB / 0.9466 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/2.56, allocations: 124 kB / 0.9468 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002898/2.561, allocations: 270.4 kB / 0.947 GB, free: 7.238 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003889/2.561, allocations: 318 kB / 0.9473 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/2.561, allocations: 4 kB / 0.9473 GB, free: 6.887 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001433/2.562, allocations: 0.5594 MB / 0.9479 GB, free: 6.348 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/2.562, allocations: 7.938 kB / 0.9479 GB, free: 6.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/2.562, allocations: 5.562 kB / 0.9479 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001482/2.564, allocations: 203.4 kB / 0.9481 GB, free: 6.141 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/2.564, allocations: 47.16 kB / 0.9481 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006352/2.565, allocations: 0.6306 MB / 0.9487 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003598/2.565, allocations: 51.66 kB / 0.9488 GB, free: 5.398 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-05/2.565, allocations: 12 kB / 0.9488 GB, free: 5.387 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003135/2.565, allocations: 264 kB / 0.9491 GB, free: 5.125 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/2.566, allocations: 63.58 kB / 0.9491 GB, free: 5.062 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006871/2.566, allocations: 269.4 kB / 0.9494 GB, free: 4.793 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/2.566, allocations: 4 kB / 0.9494 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/2.566, allocations: 0 / 0.9494 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/2.566, allocations: 7.938 kB / 0.9494 GB, free: 4.781 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001813/2.568, allocations: 0.8316 MB / 0.9502 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/2.568, allocations: 4.031 kB / 0.9502 GB, free: 3.898 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.143e-05/2.568, allocations: 5.094 kB / 0.9502 GB, free: 3.895 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00103/2.569, allocations: 160.9 kB / 0.9504 GB, free: 3.738 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/2.569, allocations: 7.938 kB / 0.9504 GB, free: 3.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005459/2.57, allocations: 0.6296 MB / 0.951 GB, free: 3.078 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/2.57, allocations: 0 / 0.951 GB, free: 3.078 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/2.571, allocations: 415.1 kB / 0.9514 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001906/2.571, allocations: 180.5 kB / 0.9515 GB, free: 2.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.908e-05/2.571, allocations: 4 kB / 0.9516 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/2.572, allocations: 15.98 kB / 0.9516 GB, free: 2.449 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.944e-05/2.572, allocations: 8.969 kB / 0.9516 GB, free: 2.441 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/2.572, allocations: 4 kB / 0.9516 GB, free: 2.438 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008435/2.572, allocations: 0.7763 MB / 0.9523 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of sort global known variables: time 8.62e-07/2.572, allocations: 0 / 0.9523 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00484/2.577, allocations: 1.665 MB / 0.954 GB, free: 15.99 MB / 0.795 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 (3): * Single equations (assignments): 2 * 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.007865/2.585, allocations: 3.293 MB / 0.9572 GB, free: 12.98 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005746/2.586, allocations: 239.2 kB / 0.9574 GB, free: 12.77 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/2.586, allocations: 0 / 0.9574 GB, free: 12.77 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001846/2.586, allocations: 59.02 kB / 0.9575 GB, free: 12.71 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005706/2.587, allocations: 102.9 kB / 0.9576 GB, free: 12.62 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/2.597, allocations: 6.332 MB / 0.9637 GB, free: 6.137 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/2.597, allocations: 0.9314 MB / 0.9647 GB, free: 5.184 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001969/2.598, allocations: 76.19 kB / 0.9647 GB, free: 5.109 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002523/2.598, allocations: 219.4 kB / 0.9649 GB, free: 4.898 MB / 0.795 GB Notification: Performance of SimCode: time 4e-07/2.598, allocations: 0 / 0.9649 GB, free: 4.898 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3118/2.91, allocations: 60.68 MB / 1.024 GB, free: 455.6 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/17.08, allocations: 3 kB / 1.024 GB, free: 455.6 MB / 0.8419 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Fluid.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_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)