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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8087/0.8087, allocations: 153.8 MB / 172.7 MB, free: 4.891 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005082/0.0005082, allocations: 11.97 kB / 249.7 MB, free: 4.438 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.169, allocations: 33.36 MB / 283.1 MB, free: 1.895 MB / 222.1 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 1.809/1.978, allocations: 307.5 MB / 0.5767 GB, free: 17.31 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0314/2.009, allocations: 30.52 MB / 0.6065 GB, free: 2.82 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002854/2.01, allocations: 4.344 kB / 0.6065 GB, free: 2.82 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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.0003982/2.01, allocations: 108.4 kB / 0.6066 GB, free: 2.773 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002003/2.01, allocations: 122.8 kB / 0.6068 GB, free: 2.688 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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.02402/2.034, allocations: 9.69 MB / 0.6162 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006167/2.035, allocations: 347.7 kB / 0.6165 GB, free: 12.76 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/2.035, allocations: 90.75 kB / 0.6166 GB, free: 12.67 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002824/2.035, allocations: 155.3 kB / 0.6168 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/2.035, allocations: 100.2 kB / 0.6169 GB, free: 12.42 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/2.035, allocations: 16 kB / 0.6169 GB, free: 12.4 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03184/2.067, allocations: 16.76 MB / 0.6333 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.689e-05/2.067, allocations: 43.8 kB / 0.6333 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001762/2.068, allocations: 103.5 kB / 0.6334 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01868/2.086, allocations: 8.454 MB / 0.6417 GB, free: 3 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/2.086, allocations: 0 / 0.6417 GB, free: 3 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.074e-06/2.086, allocations: 0 / 0.6417 GB, free: 3 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.384e-06/2.086, allocations: 0 / 0.6417 GB, free: 3 MB / 0.4981 GB 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.003622/2.09, allocations: 1.404 MB / 0.643 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/2.09, allocations: 12.03 kB / 0.643 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.663e-05/2.09, allocations: 62.53 kB / 0.6431 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.431e-05/2.09, allocations: 27.81 kB / 0.6431 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/2.09, allocations: 180.7 kB / 0.6433 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/2.09, allocations: 16.44 kB / 0.6433 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/2.09, allocations: 16 kB / 0.6433 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004334/2.091, allocations: 304.2 kB / 0.6436 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/2.091, allocations: 4 kB / 0.6436 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/2.091, allocations: 4 kB / 0.6436 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/2.091, allocations: 15.98 kB / 0.6436 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002588/2.091, allocations: 177.8 kB / 0.6438 GB, free: 0.6953 MB / 0.4981 GB 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.03488/2.126, allocations: 10.83 MB / 0.6544 GB, free: 5.801 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000326/2.126, allocations: 117.2 kB / 0.6545 GB, free: 5.68 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/2.126, allocations: 72.78 kB / 0.6546 GB, free: 5.605 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.146/2.272, allocations: 43.58 MB / 0.6971 GB, free: 9.984 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/2.272, allocations: 30.56 kB / 0.6972 GB, free: 9.945 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.625e-06/2.272, allocations: 0 / 0.6972 GB, free: 9.945 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001011/2.273, allocations: 373.4 kB / 0.6975 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/2.273, allocations: 51.41 kB / 0.6976 GB, free: 9.512 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002498/2.274, allocations: 227 kB / 0.6978 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/2.274, allocations: 25.7 kB / 0.6978 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/2.274, allocations: 156.7 kB / 0.698 GB, free: 9.09 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.106e-05/2.274, allocations: 115 kB / 0.6981 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.914e-05/2.274, allocations: 57.69 kB / 0.6981 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001505/2.274, allocations: 338.8 kB / 0.6984 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/2.274, allocations: 71.98 kB / 0.6985 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/2.274, allocations: 116.2 kB / 0.6986 GB, free: 8.375 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002663/2.275, allocations: 208.8 kB / 0.6988 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/2.275, allocations: 0.75 kB / 0.6988 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004303/2.275, allocations: 305.7 kB / 0.6991 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/2.275, allocations: 8 kB / 0.6991 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/2.275, allocations: 0 / 0.6991 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008633/2.276, allocations: 163.3 kB / 0.6993 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.672e-05/2.276, allocations: 11.94 kB / 0.6993 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005616/2.277, allocations: 0.6304 MB / 0.6999 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/2.277, allocations: 28.73 kB / 0.6999 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/2.277, allocations: 10.53 kB / 0.6999 GB, free: 6.977 MB / 0.5606 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.0001373/2.277, allocations: 129.8 kB / 0.7001 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.369e-05/2.277, allocations: 31.73 kB / 0.7001 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007489/2.278, allocations: 0.5845 MB / 0.7007 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003517/2.278, allocations: 222.3 kB / 0.7009 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/2.278, allocations: 1.594 kB / 0.7009 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/2.278, allocations: 0 / 0.7009 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009308/2.279, allocations: 0.6665 MB / 0.7015 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/2.279, allocations: 0 / 0.7015 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.559e-05/2.279, allocations: 24.92 kB / 0.7016 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003596/2.279, allocations: 110.9 kB / 0.7017 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/2.279, allocations: 1.031 kB / 0.7017 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005228/2.28, allocations: 0.6577 MB / 0.7023 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/2.28, allocations: 3.938 kB / 0.7023 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/2.28, allocations: 338.9 kB / 0.7026 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.84e-05/2.28, allocations: 36.64 kB / 0.7027 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.454e-05/2.28, allocations: 20.83 kB / 0.7027 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.773e-05/2.281, allocations: 0 / 0.7027 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.361e-05/2.281, allocations: 15.97 kB / 0.7027 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/2.281, allocations: 4 kB / 0.7027 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002426/2.281, allocations: 235.1 kB / 0.7029 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.1e-08/2.281, allocations: 0 / 0.7029 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00289/2.284, allocations: 1.206 MB / 0.7041 GB, free: 2.535 MB / 0.5606 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.00523/2.289, allocations: 2.521 MB / 0.7066 GB, free: 16 kB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005159/2.29, allocations: 217.7 kB / 0.7068 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/2.29, allocations: 0 / 0.7068 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001886/2.29, allocations: 77.88 kB / 0.7068 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007041/2.29, allocations: 127.5 kB / 0.707 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003996/2.294, allocations: 3.051 MB / 0.7099 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001539/2.295, allocations: 164.8 kB / 0.7101 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.499e-05/2.295, allocations: 24.02 kB / 0.7101 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/2.295, allocations: 89 kB / 0.7102 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of SimCode: time 4.21e-07/2.295, allocations: 1.031 kB / 0.7102 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0908/2.386, allocations: 48.44 MB / 0.7575 GB, free: 12.43 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.15/16.54, allocations: 10.59 kB / 0.7575 GB, free: 12.43 MB / 0.6231 GB " [Timeout remaining time 643] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.60929870279506] Failed to read output from testmodel.py, exit status != 0: 17.096034933812916 17.106403027 15.017760592 Calling exit ...