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.786/0.786, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003573, allocations: 13.52 kB / 236.5 MB, free: 2.223 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05254/0.05292, allocations: 31.35 MB / 267.9 MB, free: 7.711 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.56/1.613, allocations: 294.9 MB / 0.5496 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5681/2.181, allocations: 190.5 MB / 0.7357 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004055/2.182, allocations: 11 kB / 0.7357 GB, free: 1.809 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.0004132/2.182, allocations: 212 kB / 0.7359 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004767/2.183, allocations: 276.7 kB / 0.7361 GB, free: 1.809 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.03396/2.217, allocations: 12.53 MB / 0.7484 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008051/2.218, allocations: 0.5363 MB / 0.7489 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003019/2.218, allocations: 268.7 kB / 0.7492 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002847/2.218, allocations: 258 kB / 0.7494 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000309/2.219, allocations: 354.5 kB / 0.7497 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.2e-05/2.219, allocations: 38.44 kB / 0.7498 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03617/2.255, allocations: 21.09 MB / 0.7704 GB, free: 28 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002987/2.255, allocations: 202.5 kB / 0.7706 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004633/2.256, allocations: 333.4 kB / 0.7709 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02695/2.283, allocations: 10.78 MB / 0.7814 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/2.283, allocations: 3.562 kB / 0.7814 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.074e-06/2.283, allocations: 0 / 0.7814 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.134e-05/2.283, allocations: 0 / 0.7814 GB, free: 12.1 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.005799/2.288, allocations: 2.327 MB / 0.7837 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/2.289, allocations: 13.88 kB / 0.7837 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.74e-05/2.289, allocations: 80.08 kB / 0.7838 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/2.289, allocations: 91.44 kB / 0.7839 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000681/2.289, allocations: 0.5535 MB / 0.7844 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/2.289, allocations: 32.38 kB / 0.7844 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.904e-05/2.29, allocations: 34.59 kB / 0.7845 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006088/2.29, allocations: 497.3 kB / 0.7849 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/2.29, allocations: 3.094 kB / 0.7849 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/2.29, allocations: 18.27 kB / 0.785 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.557e-06/2.29, allocations: 11.44 kB / 0.785 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005042/2.291, allocations: 417.4 kB / 0.7854 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00894/2.3, allocations: 6.693 MB / 0.7919 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005079/2.3, allocations: 120.1 kB / 0.792 GB, free: 4.547 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.484e-05/2.3, allocations: 46.08 kB / 0.7921 GB, free: 4.535 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2926/2.593, allocations: 155.7 MB / 0.9441 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.295e-05/2.593, allocations: 34.56 kB / 0.9441 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.094e-06/2.593, allocations: 4 kB / 0.9441 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.00202/2.595, allocations: 469.5 kB / 0.9446 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/2.595, allocations: 106.8 kB / 0.9447 GB, free: 9.66 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001315/2.596, allocations: 1.071 MB / 0.9457 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/2.596, allocations: 30.8 kB / 0.9457 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002842/2.597, allocations: 391.3 kB / 0.9461 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/2.597, allocations: 43.69 kB / 0.9462 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/2.597, allocations: 77.59 kB / 0.9462 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001521/2.597, allocations: 378.7 kB / 0.9466 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/2.597, allocations: 131.9 kB / 0.9467 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/2.598, allocations: 265.4 kB / 0.947 GB, free: 7.211 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000358/2.598, allocations: 320.2 kB / 0.9473 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/2.598, allocations: 0 / 0.9473 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001278/2.599, allocations: 0.5657 MB / 0.9478 GB, free: 6.324 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/2.599, allocations: 11.94 kB / 0.9478 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/2.599, allocations: 4 kB / 0.9478 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/2.601, allocations: 197 kB / 0.948 GB, free: 6.117 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/2.601, allocations: 47.16 kB / 0.9481 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005353/2.601, allocations: 0.6257 MB / 0.9487 GB, free: 5.426 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002873/2.602, allocations: 54.17 kB / 0.9487 GB, free: 5.375 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.135e-05/2.602, allocations: 16 kB / 0.9488 GB, free: 5.359 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.0002938/2.602, allocations: 263.8 kB / 0.949 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.239e-05/2.602, allocations: 63.58 kB / 0.9491 GB, free: 5.035 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006293/2.603, allocations: 269.8 kB / 0.9493 GB, free: 4.766 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/2.603, allocations: 0 / 0.9493 GB, free: 4.766 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/2.603, allocations: 7.188 kB / 0.9493 GB, free: 4.762 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/2.603, allocations: 3.938 kB / 0.9493 GB, free: 4.758 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/2.604, allocations: 0.8325 MB / 0.9501 GB, free: 3.875 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/2.604, allocations: 4.031 kB / 0.9502 GB, free: 3.871 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.087e-05/2.604, allocations: 4 kB / 0.9502 GB, free: 3.867 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009782/2.605, allocations: 164.7 kB / 0.9503 GB, free: 3.711 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/2.605, allocations: 4 kB / 0.9503 GB, free: 3.707 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004829/2.606, allocations: 0.6308 MB / 0.9509 GB, free: 3.055 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/2.606, allocations: 0 / 0.9509 GB, free: 3.055 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/2.607, allocations: 411 kB / 0.9513 GB, free: 2.645 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002294/2.607, allocations: 186.1 kB / 0.9515 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.224e-05/2.607, allocations: 0 / 0.9515 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/2.608, allocations: 15.98 kB / 0.9515 GB, free: 2.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/2.608, allocations: 11.08 kB / 0.9515 GB, free: 2.422 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/2.608, allocations: 5.625 kB / 0.9515 GB, free: 2.418 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008334/2.608, allocations: 0.7802 MB / 0.9523 GB, free: 1.641 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/2.608, allocations: 0 / 0.9523 GB, free: 1.641 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.005239/2.614, allocations: 1.664 MB / 0.9539 GB, free: 15.97 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.007902/2.622, allocations: 3.302 MB / 0.9571 GB, free: 12.95 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006131/2.622, allocations: 237 kB / 0.9574 GB, free: 12.73 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/2.622, allocations: 0 / 0.9574 GB, free: 12.73 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001598/2.622, allocations: 60.02 kB / 0.9574 GB, free: 12.68 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006345/2.623, allocations: 94.92 kB / 0.9575 GB, free: 12.6 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009457/2.633, allocations: 6.333 MB / 0.9637 GB, free: 6.105 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004522/2.633, allocations: 0.9284 MB / 0.9646 GB, free: 5.152 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001854/2.633, allocations: 71.45 kB / 0.9647 GB, free: 5.086 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/2.633, allocations: 219.4 kB / 0.9649 GB, free: 4.875 MB / 0.795 GB Notification: Performance of SimCode: time 1.552e-06/2.633, allocations: 0 / 0.9649 GB, free: 4.875 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2824/2.916, allocations: 60.68 MB / 1.024 GB, free: 455.6 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.36/17.27, allocations: 12.53 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)