Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.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.861/0.861, allocations: 153.8 MB / 172.7 MB, free: 4.945 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.Fluid.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005632/0.0005632, allocations: 15.97 kB / 249.8 MB, free: 4.449 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2541, allocations: 33.36 MB / 283.2 MB, free: 1.828 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.Fluid.Examples.SimpleExamples.TestBend): time 2.141/2.395, allocations: 307.7 MB / 0.5771 GB, free: 16 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2573/2.653, allocations: 194.1 MB / 0.7666 GB, free: 2.836 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007005/2.653, allocations: 15.88 kB / 0.7666 GB, free: 2.82 MB / 0.6231 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:59:3-60: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 master/Fluid/BoundaryConditions/SinkP.mo:47:3-48: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 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 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.0006242/2.654, allocations: 203.2 kB / 0.7668 GB, free: 2.621 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.001019/2.655, allocations: 286.6 kB / 0.7671 GB, free: 2.34 MB / 0.6231 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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.0432/2.698, allocations: 12.64 MB / 0.7794 GB, free: 5.703 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.001005/2.699, allocations: 0.5457 MB / 0.78 GB, free: 5.156 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003566/2.7, allocations: 237.1 kB / 0.7802 GB, free: 4.918 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004034/2.7, allocations: 279.1 kB / 0.7805 GB, free: 4.645 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004284/2.701, allocations: 382.8 kB / 0.7808 GB, free: 4.27 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 6.183e-05/2.701, allocations: 44 kB / 0.7809 GB, free: 4.227 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04325/2.744, allocations: 21.22 MB / 0.8016 GB, free: 14.98 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0003478/2.744, allocations: 219.3 kB / 0.8018 GB, free: 14.77 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0004153/2.745, allocations: 329.9 kB / 0.8021 GB, free: 14.44 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.03351/2.778, allocations: 10.83 MB / 0.8127 GB, free: 3.586 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/2.778, allocations: 0 / 0.8127 GB, free: 3.586 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.344e-06/2.778, allocations: 0 / 0.8127 GB, free: 3.586 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.25e-05/2.778, allocations: 0 / 0.8127 GB, free: 3.586 MB / 0.67 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.007293/2.785, allocations: 2.295 MB / 0.8149 GB, free: 1.246 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/2.785, allocations: 12.03 kB / 0.8149 GB, free: 1.234 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.859e-05/2.786, allocations: 76.03 kB / 0.815 GB, free: 1.152 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002335/2.786, allocations: 95.38 kB / 0.8151 GB, free: 1.059 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008327/2.787, allocations: 0.5179 MB / 0.8156 GB, free: 0.5117 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.947e-05/2.787, allocations: 29.69 kB / 0.8156 GB, free: 496 kB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.227e-05/2.787, allocations: 36 kB / 0.8157 GB, free: 460 kB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007827/2.787, allocations: 495.4 kB / 0.8161 GB, free: 15.93 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/2.788, allocations: 0 / 0.8161 GB, free: 15.93 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.589e-05/2.788, allocations: 20 kB / 0.8162 GB, free: 15.91 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/2.788, allocations: 8 kB / 0.8162 GB, free: 15.9 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006248/2.788, allocations: 419.8 kB / 0.8166 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008942/2.797, allocations: 4.374 MB / 0.8208 GB, free: 10.92 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005448/2.798, allocations: 108.1 kB / 0.8209 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.275e-05/2.798, allocations: 44.78 kB / 0.821 GB, free: 10.76 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5517/3.349, allocations: 88.37 MB / 0.9073 GB, free: 247.7 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.372e-05/3.35, allocations: 35.81 kB / 0.9073 GB, free: 247.6 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=11): time 2.745e-06/3.35, allocations: 0 / 0.9073 GB, free: 247.6 MB / 0.6856 GB Notification: Performance of matching and sorting (n=11): time 0.002267/3.352, allocations: 390.6 kB / 0.9077 GB, free: 247.3 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/3.352, allocations: 106.8 kB / 0.9078 GB, free: 247.1 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001577/3.353, allocations: 1.124 MB / 0.9089 GB, free: 246 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/3.353, allocations: 29.45 kB / 0.9089 GB, free: 246 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.000283/3.354, allocations: 398.2 kB / 0.9093 GB, free: 245.7 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 3.907e-05/3.354, allocations: 44.2 kB / 0.9093 GB, free: 245.6 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/3.354, allocations: 85.59 kB / 0.9094 GB, free: 245.5 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001196/3.354, allocations: 378.8 kB / 0.9098 GB, free: 245.1 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/3.354, allocations: 127.9 kB / 0.9099 GB, free: 245 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/3.354, allocations: 262.3 kB / 0.9102 GB, free: 244.7 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003624/3.355, allocations: 323.2 kB / 0.9105 GB, free: 244.4 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/3.355, allocations: 0 / 0.9105 GB, free: 244.4 MB / 0.6856 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001566/3.356, allocations: 0.557 MB / 0.911 GB, free: 243.8 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/3.356, allocations: 12.06 kB / 0.911 GB, free: 243.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/3.356, allocations: 7.281 kB / 0.911 GB, free: 243.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001607/3.358, allocations: 197.6 kB / 0.9112 GB, free: 243.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/3.358, allocations: 51.53 kB / 0.9113 GB, free: 243.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006264/3.359, allocations: 0.627 MB / 0.9119 GB, free: 242.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004011/3.359, allocations: 49.2 kB / 0.9119 GB, free: 242.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/3.359, allocations: 20.06 kB / 0.9119 GB, free: 242.9 MB / 0.6856 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.0003194/3.36, allocations: 270.2 kB / 0.9122 GB, free: 242.6 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/3.36, allocations: 71.52 kB / 0.9123 GB, free: 242.5 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006971/3.36, allocations: 272.1 kB / 0.9125 GB, free: 242.3 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/3.36, allocations: 5.438 kB / 0.9125 GB, free: 242.2 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/3.36, allocations: 4 kB / 0.9125 GB, free: 242.2 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/3.36, allocations: 0 / 0.9125 GB, free: 242.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001859/3.362, allocations: 0.8182 MB / 0.9133 GB, free: 241.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/3.362, allocations: 3.984 kB / 0.9133 GB, free: 241.4 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.049e-05/3.362, allocations: 4 kB / 0.9133 GB, free: 241.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/3.363, allocations: 169.7 kB / 0.9135 GB, free: 241.2 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/3.363, allocations: 3.609 kB / 0.9135 GB, free: 241.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004807/3.364, allocations: 0.6333 MB / 0.9141 GB, free: 240.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/3.364, allocations: 0 / 0.9141 GB, free: 240.6 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/3.365, allocations: 427.3 kB / 0.9145 GB, free: 240.1 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002368/3.365, allocations: 113.9 kB / 0.9146 GB, free: 240 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.45e-05/3.365, allocations: 4 kB / 0.9146 GB, free: 240 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001842/3.366, allocations: 8 kB / 0.9147 GB, free: 240 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/3.366, allocations: 11.97 kB / 0.9147 GB, free: 240 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/3.366, allocations: 4 kB / 0.9147 GB, free: 240 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007998/3.366, allocations: 0.8192 MB / 0.9155 GB, free: 239.2 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8e-08/3.366, allocations: 0 / 0.9155 GB, free: 239.2 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.005412/3.372, allocations: 1.671 MB / 0.9171 GB, free: 237.8 MB / 0.6856 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.01049/3.382, allocations: 3.27 MB / 0.9203 GB, free: 234.9 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0006842/3.383, allocations: 231.2 kB / 0.9205 GB, free: 234.7 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/3.383, allocations: 1.062 kB / 0.9205 GB, free: 234.7 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001746/3.383, allocations: 63.88 kB / 0.9206 GB, free: 234.6 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008647/3.384, allocations: 98.55 kB / 0.9207 GB, free: 234.6 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/3.394, allocations: 6.399 MB / 0.9269 GB, free: 228 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/3.395, allocations: 0.9467 MB / 0.9278 GB, free: 227 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0002066/3.395, allocations: 70.09 kB / 0.9279 GB, free: 227 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002374/3.395, allocations: 219.4 kB / 0.9281 GB, free: 226.7 MB / 0.6856 GB Notification: Performance of SimCode: time 1.373e-06/3.395, allocations: 0 / 0.9281 GB, free: 226.7 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1077/3.503, allocations: 61.03 MB / 0.9877 GB, free: 166.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.47/20.97, allocations: 9.734 kB / 0.9877 GB, free: 166.6 MB / 0.6856 GB " [Timeout remaining time 639] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 23.16237168898806] Failed to read output from testmodel.py, exit status != 0: 21.2791501278989 21.289819068 18.509231599 Calling exit ...