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 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8948/0.8948, allocations: 150.9 MB / 166.4 MB, free: 14.25 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000409/0.0004093, allocations: 19.97 kB / 204.6 MB, free: 9.527 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.1849, allocations: 31.33 MB / 236 MB, free: 5.438 MB / 190.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.SimpleExamples.TestBend): time 1.964/2.149, allocations: 294.9 MB / 0.5185 GB, free: 12.85 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6696/2.819, allocations: 190.5 MB / 0.7045 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006943/2.819, allocations: 12 kB / 0.7045 GB, free: 2.266 MB / 0.5762 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.0006213/2.82, allocations: 204.1 kB / 0.7047 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006992/2.821, allocations: 276 kB / 0.705 GB, free: 2.266 MB / 0.5762 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.03796/2.859, allocations: 12.29 MB / 0.717 GB, free: 2.109 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000626/2.859, allocations: 0.5319 MB / 0.7175 GB, free: 2.109 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002838/2.86, allocations: 275.6 kB / 0.7178 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002625/2.86, allocations: 258 kB / 0.718 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000356/2.86, allocations: 357.7 kB / 0.7183 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.046e-05/2.86, allocations: 40.97 kB / 0.7184 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03701/2.897, allocations: 20.81 MB / 0.7387 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000407/2.898, allocations: 205.9 kB / 0.7389 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005635/2.898, allocations: 323 kB / 0.7392 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04233/2.941, allocations: 10.79 MB / 0.7498 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/2.941, allocations: 0 / 0.7498 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.244e-06/2.941, allocations: 0.8438 kB / 0.7498 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.343e-05/2.941, allocations: 0 / 0.7498 GB, free: 14.2 MB / 0.5919 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.009355/2.95, allocations: 2.231 MB / 0.7519 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 8.906e-05/2.95, allocations: 12.08 kB / 0.7519 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000136/2.95, allocations: 76.84 kB / 0.752 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/2.951, allocations: 81.41 kB / 0.7521 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/2.952, allocations: 0.5511 MB / 0.7526 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.693e-05/2.952, allocations: 26.06 kB / 0.7527 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.246e-05/2.952, allocations: 40.44 kB / 0.7527 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/2.953, allocations: 489.8 kB / 0.7532 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/2.953, allocations: 1.203 kB / 0.7532 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.071e-05/2.953, allocations: 20.47 kB / 0.7532 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/2.953, allocations: 10.78 kB / 0.7532 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007526/2.954, allocations: 413.1 kB / 0.7536 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0303/2.984, allocations: 6.703 MB / 0.7601 GB, free: 6.816 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007454/2.985, allocations: 125.6 kB / 0.7603 GB, free: 6.773 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/2.985, allocations: 40.2 kB / 0.7603 GB, free: 6.762 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6794/3.664, allocations: 154.7 MB / 0.9114 GB, free: 1.891 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.571e-05/3.664, allocations: 34.56 kB / 0.9114 GB, free: 1.848 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 2.024e-06/3.664, allocations: 0 / 0.9114 GB, free: 1.848 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002407/3.667, allocations: 478.7 kB / 0.9119 GB, free: 1.402 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/3.667, allocations: 104 kB / 0.912 GB, free: 1.277 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/3.669, allocations: 1.068 MB / 0.913 GB, free: 480 kB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/3.669, allocations: 25.7 kB / 0.913 GB, free: 448 kB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000337/3.669, allocations: 384.2 kB / 0.9134 GB, free: 200 kB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.766e-05/3.669, allocations: 46.83 kB / 0.9135 GB, free: 160 kB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/3.669, allocations: 79.64 kB / 0.9135 GB, free: 100 kB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000199/3.67, allocations: 385.5 kB / 0.9139 GB, free: 15.74 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/3.67, allocations: 129.6 kB / 0.914 GB, free: 15.65 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/3.67, allocations: 260.5 kB / 0.9143 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004045/3.671, allocations: 324.3 kB / 0.9146 GB, free: 15.1 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/3.671, allocations: 0 / 0.9146 GB, free: 15.1 MB / 0.7637 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001512/3.672, allocations: 0.5558 MB / 0.9151 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/3.672, allocations: 8 kB / 0.9151 GB, free: 14.65 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/3.672, allocations: 4.406 kB / 0.9151 GB, free: 14.64 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001521/3.674, allocations: 201.3 kB / 0.9153 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/3.674, allocations: 45.45 kB / 0.9154 GB, free: 14.43 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000618/3.674, allocations: 0.6258 MB / 0.916 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003978/3.675, allocations: 42.91 kB / 0.916 GB, free: 13.78 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/3.675, allocations: 15.98 kB / 0.916 GB, free: 13.77 MB / 0.7637 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.0003699/3.675, allocations: 269.7 kB / 0.9163 GB, free: 13.55 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/3.675, allocations: 63.16 kB / 0.9164 GB, free: 13.49 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007427/3.676, allocations: 270.3 kB / 0.9166 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/3.676, allocations: 0 / 0.9166 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/3.676, allocations: 7.922 kB / 0.9166 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/3.676, allocations: 0 / 0.9166 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001949/3.678, allocations: 0.8358 MB / 0.9174 GB, free: 12.53 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/3.678, allocations: 0 / 0.9174 GB, free: 12.53 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.337e-05/3.678, allocations: 11.83 kB / 0.9175 GB, free: 12.52 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001047/3.679, allocations: 159.6 kB / 0.9176 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/3.679, allocations: 9.016 kB / 0.9176 GB, free: 12.37 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005741/3.68, allocations: 0.6334 MB / 0.9182 GB, free: 11.76 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/3.68, allocations: 0 / 0.9182 GB, free: 11.76 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/3.681, allocations: 420.8 kB / 0.9186 GB, free: 11.38 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002241/3.681, allocations: 160.9 kB / 0.9188 GB, free: 11.21 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.103e-05/3.681, allocations: 7.438 kB / 0.9188 GB, free: 11.21 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/3.682, allocations: 7.984 kB / 0.9188 GB, free: 11.2 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/3.682, allocations: 8 kB / 0.9188 GB, free: 11.19 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/3.682, allocations: 11.05 kB / 0.9188 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001126/3.683, allocations: 0.7757 MB / 0.9196 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/3.683, allocations: 0 / 0.9196 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.02491/3.708, allocations: 1.647 MB / 0.9212 GB, free: 8.836 MB / 0.7637 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.01157/3.719, allocations: 3.272 MB / 0.9244 GB, free: 5.836 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006775/3.72, allocations: 240.5 kB / 0.9246 GB, free: 5.617 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/3.72, allocations: 4.062 kB / 0.9246 GB, free: 5.613 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001887/3.72, allocations: 58.92 kB / 0.9247 GB, free: 5.559 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007915/3.721, allocations: 92.66 kB / 0.9248 GB, free: 5.477 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/3.734, allocations: 6.458 MB / 0.9311 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006442/3.734, allocations: 0.9296 MB / 0.932 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002674/3.735, allocations: 80.17 kB / 0.9321 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002995/3.735, allocations: 215.4 kB / 0.9323 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of SimCode: time 1.032e-06/3.735, allocations: 0 / 0.9323 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9612/4.696, allocations: 60.5 MB / 0.9913 GB, free: 422.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.55/19.25, allocations: 7.766 kB / 0.9913 GB, free: 422.7 MB / 0.8106 GB (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 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe 2>&1)