Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8718/0.8718, allocations: 152.6 MB / 168.9 MB, free: 15 MB / 142.1 MB " [Timeout remaining time 179] 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.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005311/0.0005311, allocations: 22.75 kB / 244.5 MB, free: 15.95 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.062/0.06253, allocations: 33.06 MB / 277.5 MB, free: 1.125 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.Examples.SimpleExamples.TestPipePressureLoss): time 1.678/1.74, allocations: 301.2 MB / 0.5651 GB, free: 2.625 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04487/1.785, allocations: 34.56 MB / 0.5989 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/1.785, allocations: 4 kB / 0.5989 GB, free: 15.92 MB / 494.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.0004347/1.786, allocations: 127.3 kB / 0.599 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003197/1.786, allocations: 123.2 kB / 0.5991 GB, free: 15.68 MB / 494.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.02635/1.812, allocations: 9.736 MB / 0.6086 GB, free: 5.926 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005772/1.813, allocations: 346.5 kB / 0.6089 GB, free: 5.586 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002039/1.813, allocations: 96.44 kB / 0.609 GB, free: 5.492 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002482/1.813, allocations: 143.4 kB / 0.6092 GB, free: 5.352 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001556/1.814, allocations: 115.4 kB / 0.6093 GB, free: 5.238 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/1.814, allocations: 16 kB / 0.6093 GB, free: 5.223 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03131/1.845, allocations: 17.9 MB / 0.6268 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.27e-05/1.845, allocations: 39.8 kB / 0.6268 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001942/1.845, allocations: 139.3 kB / 0.6269 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01953/1.865, allocations: 8.419 MB / 0.6352 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/1.865, allocations: 4 kB / 0.6352 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.502e-06/1.865, allocations: 0 / 0.6352 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.657e-06/1.865, allocations: 4 kB / 0.6352 GB, free: 10.68 MB / 0.5137 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.003945/1.869, allocations: 1.498 MB / 0.6366 GB, free: 9.129 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/1.869, allocations: 8.031 kB / 0.6366 GB, free: 9.121 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.68e-05/1.869, allocations: 62.48 kB / 0.6367 GB, free: 9.051 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.888e-05/1.869, allocations: 39.8 kB / 0.6367 GB, free: 9.012 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/1.869, allocations: 226.6 kB / 0.637 GB, free: 8.75 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/1.869, allocations: 16.38 kB / 0.637 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.069e-05/1.869, allocations: 24 kB / 0.637 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004421/1.87, allocations: 303.3 kB / 0.6373 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/1.87, allocations: 0 / 0.6373 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/1.87, allocations: 4 kB / 0.6373 GB, free: 8.375 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/1.87, allocations: 15.98 kB / 0.6373 GB, free: 8.359 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002577/1.87, allocations: 177 kB / 0.6375 GB, free: 8.188 MB / 0.5137 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.03782/1.908, allocations: 18.14 MB / 0.6552 GB, free: 4.172 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/1.908, allocations: 106.7 kB / 0.6553 GB, free: 4.059 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/1.908, allocations: 68.84 kB / 0.6554 GB, free: 3.988 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.326/2.234, allocations: 77.72 MB / 0.7313 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/2.234, allocations: 38.22 kB / 0.7313 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.344e-06/2.234, allocations: 0 / 0.7313 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009087/2.235, allocations: 442.2 kB / 0.7317 GB, free: 210 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.354e-05/2.235, allocations: 57.12 kB / 0.7318 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/2.235, allocations: 219.5 kB / 0.732 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/2.235, allocations: 28.58 kB / 0.732 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.046e-05/2.235, allocations: 153.1 kB / 0.7322 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.36e-05/2.235, allocations: 110.3 kB / 0.7323 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.833e-05/2.235, allocations: 52.3 kB / 0.7323 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.306e-05/2.235, allocations: 336.5 kB / 0.7326 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.53e-05/2.236, allocations: 75.78 kB / 0.7327 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/2.236, allocations: 113.4 kB / 0.7328 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/2.236, allocations: 208.6 kB / 0.733 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/2.236, allocations: 0 / 0.733 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003543/2.236, allocations: 296.1 kB / 0.7333 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/2.236, allocations: 5.656 kB / 0.7333 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/2.236, allocations: 3.922 kB / 0.7333 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008055/2.237, allocations: 159 kB / 0.7335 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.15e-05/2.237, allocations: 6.75 kB / 0.7335 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003661/2.237, allocations: 0.6343 MB / 0.7341 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.846e-05/2.238, allocations: 27.55 kB / 0.7341 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/2.238, allocations: 12.67 kB / 0.7341 GB, free: 208.6 MB / 0.5919 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 8.968e-05/2.238, allocations: 131.3 kB / 0.7342 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.72e-05/2.238, allocations: 20.27 kB / 0.7343 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000569/2.238, allocations: 0.5844 MB / 0.7348 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002965/2.239, allocations: 217.3 kB / 0.735 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/2.239, allocations: 0 / 0.735 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/2.239, allocations: 2.25 kB / 0.735 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007471/2.239, allocations: 0.7223 MB / 0.7357 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/2.239, allocations: 2.5 kB / 0.7357 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.164e-05/2.239, allocations: 18.22 kB / 0.7358 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003176/2.24, allocations: 115.8 kB / 0.7359 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/2.24, allocations: 6.688 kB / 0.7359 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003225/2.24, allocations: 0.6556 MB / 0.7365 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/2.24, allocations: 0 / 0.7365 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003589/2.24, allocations: 342.6 kB / 0.7368 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.167e-05/2.24, allocations: 107.2 kB / 0.737 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/2.24, allocations: 11.94 kB / 0.737 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.708e-05/2.241, allocations: 5.875 kB / 0.737 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.121e-05/2.241, allocations: 9.406 kB / 0.737 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/2.241, allocations: 3.906 kB / 0.737 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001767/2.241, allocations: 241.3 kB / 0.7372 GB, free: 207 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/2.241, allocations: 1.719 kB / 0.7372 GB, free: 207 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002622/2.243, allocations: 1.199 MB / 0.7384 GB, free: 207 MB / 0.5919 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.004575/2.248, allocations: 2.515 MB / 0.7408 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004669/2.248, allocations: 207.1 kB / 0.741 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/2.248, allocations: 0.5625 kB / 0.741 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001601/2.249, allocations: 81.06 kB / 0.7411 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00068/2.249, allocations: 133 kB / 0.7412 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003252/2.253, allocations: 3.024 MB / 0.7442 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/2.253, allocations: 0.7727 MB / 0.745 GB, free: 203.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.35e-05/2.253, allocations: 21.77 kB / 0.745 GB, free: 203.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.859e-05/2.253, allocations: 91.12 kB / 0.7451 GB, free: 203.6 MB / 0.5919 GB Notification: Performance of SimCode: time 7.01e-07/2.253, allocations: 3.938 kB / 0.7451 GB, free: 203.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06992/2.323, allocations: 47.75 MB / 0.7917 GB, free: 159.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.23/16.56, allocations: 0.7031 kB / 0.7917 GB, free: 159.4 MB / 0.5919 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.548850749619305] Failed to read output from testmodel.py, exit status != 0: 16.82922342000529 16.838926043 14.972034111 Calling exit ...