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.8406/0.8406, allocations: 150.9 MB / 166.4 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003458, allocations: 15.97 kB / 204.7 MB, free: 9.641 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1328, allocations: 31.33 MB / 236 MB, free: 5.375 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.Book.SimpleExamples.PressureLoss.TestBend): time 1.598/1.73, allocations: 294.9 MB / 0.5184 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4905/2.221, allocations: 190.5 MB / 0.7044 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002977/2.221, allocations: 5.5 kB / 0.7044 GB, free: 2.281 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.0004026/2.222, allocations: 207.3 kB / 0.7046 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000528/2.222, allocations: 277 kB / 0.7049 GB, free: 2.281 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.02777/2.25, allocations: 12.29 MB / 0.7169 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006348/2.251, allocations: 0.5299 MB / 0.7174 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002853/2.251, allocations: 284.7 kB / 0.7177 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002423/2.251, allocations: 251.1 kB / 0.7179 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002855/2.251, allocations: 355.5 kB / 0.7183 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.14e-05/2.251, allocations: 41.69 kB / 0.7183 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03149/2.283, allocations: 20.82 MB / 0.7386 GB, free: 1.984 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002285/2.283, allocations: 206.3 kB / 0.7388 GB, free: 1.984 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000326/2.284, allocations: 319.2 kB / 0.7391 GB, free: 1.984 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02165/2.305, allocations: 10.78 MB / 0.7497 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/2.305, allocations: 0 / 0.7497 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.623e-06/2.305, allocations: 0.9062 kB / 0.7497 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.072e-05/2.305, allocations: 0 / 0.7497 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.00518/2.311, allocations: 2.232 MB / 0.7519 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/2.311, allocations: 10.25 kB / 0.7519 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.685e-05/2.311, allocations: 80.53 kB / 0.7519 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/2.311, allocations: 81.59 kB / 0.752 GB, free: 12.69 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006007/2.311, allocations: 0.5528 MB / 0.7526 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.62e-05/2.311, allocations: 25.16 kB / 0.7526 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/2.311, allocations: 42.36 kB / 0.7526 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006157/2.312, allocations: 489 kB / 0.7531 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/2.312, allocations: 6.562 kB / 0.7531 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/2.312, allocations: 16.34 kB / 0.7531 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/2.312, allocations: 11.41 kB / 0.7531 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005199/2.313, allocations: 413 kB / 0.7535 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008998/2.322, allocations: 6.703 MB / 0.7601 GB, free: 6.816 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005282/2.322, allocations: 117.6 kB / 0.7602 GB, free: 6.777 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.658e-05/2.322, allocations: 44.31 kB / 0.7602 GB, free: 6.766 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3207/2.643, allocations: 154.7 MB / 0.9113 GB, free: 1.871 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/2.643, allocations: 35.44 kB / 0.9114 GB, free: 1.828 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 1.843e-06/2.643, allocations: 0 / 0.9114 GB, free: 1.828 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002235/2.645, allocations: 474.3 kB / 0.9118 GB, free: 1.391 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/2.645, allocations: 104.5 kB / 0.9119 GB, free: 1.266 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/2.647, allocations: 1.068 MB / 0.9129 GB, free: 464 kB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/2.647, allocations: 27.39 kB / 0.913 GB, free: 432 kB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/2.647, allocations: 391.5 kB / 0.9133 GB, free: 172 kB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.488e-05/2.647, allocations: 44.52 kB / 0.9134 GB, free: 136 kB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/2.647, allocations: 75.52 kB / 0.9135 GB, free: 76 kB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000156/2.647, allocations: 381.3 kB / 0.9138 GB, free: 15.72 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/2.648, allocations: 129.6 kB / 0.9139 GB, free: 15.63 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000261/2.648, allocations: 262.3 kB / 0.9142 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/2.648, allocations: 316.1 kB / 0.9145 GB, free: 15.08 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/2.648, allocations: 0 / 0.9145 GB, free: 15.08 MB / 0.7637 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001405/2.65, allocations: 0.565 MB / 0.9151 GB, free: 14.64 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/2.65, allocations: 8 kB / 0.9151 GB, free: 14.63 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/2.65, allocations: 5.203 kB / 0.9151 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/2.651, allocations: 204.2 kB / 0.9153 GB, free: 14.44 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/2.651, allocations: 43.08 kB / 0.9153 GB, free: 14.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005871/2.652, allocations: 0.6276 MB / 0.9159 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003097/2.652, allocations: 46.45 kB / 0.916 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/2.652, allocations: 15.25 kB / 0.916 GB, free: 13.74 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.0002716/2.653, allocations: 266.9 kB / 0.9162 GB, free: 13.53 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.907e-05/2.653, allocations: 63.16 kB / 0.9163 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006991/2.654, allocations: 263.4 kB / 0.9165 GB, free: 13.26 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/2.654, allocations: 0 / 0.9165 GB, free: 13.26 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/2.654, allocations: 7.938 kB / 0.9165 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/2.654, allocations: 0 / 0.9165 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001817/2.655, allocations: 0.8447 MB / 0.9174 GB, free: 12.51 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/2.655, allocations: 0 / 0.9174 GB, free: 12.51 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.315e-05/2.655, allocations: 5.094 kB / 0.9174 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/2.657, allocations: 170.1 kB / 0.9175 GB, free: 12.36 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/2.657, allocations: 7.25 kB / 0.9175 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005308/2.657, allocations: 0.6248 MB / 0.9182 GB, free: 11.75 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/2.657, allocations: 4 kB / 0.9182 GB, free: 11.74 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/2.658, allocations: 411.7 kB / 0.9186 GB, free: 11.36 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/2.659, allocations: 161.7 kB / 0.9187 GB, free: 11.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.944e-05/2.659, allocations: 19.73 kB / 0.9187 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/2.659, allocations: 4 kB / 0.9187 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.577e-05/2.659, allocations: 10.48 kB / 0.9187 GB, free: 11.17 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/2.659, allocations: 4 kB / 0.9187 GB, free: 11.17 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008744/2.66, allocations: 0.7845 MB / 0.9195 GB, free: 10.49 MB / 0.7637 GB Notification: Performance of sort global known variables: time 8.31e-07/2.66, allocations: 3.188 kB / 0.9195 GB, free: 10.49 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004263/2.664, allocations: 1.636 MB / 0.9211 GB, free: 8.852 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.008481/2.673, allocations: 3.274 MB / 0.9243 GB, free: 5.848 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0005816/2.673, allocations: 237.9 kB / 0.9245 GB, free: 5.629 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/2.673, allocations: 0 / 0.9245 GB, free: 5.629 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000185/2.673, allocations: 59.02 kB / 0.9246 GB, free: 5.574 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005968/2.674, allocations: 101.3 kB / 0.9247 GB, free: 5.484 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00998/2.684, allocations: 6.451 MB / 0.931 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004646/2.684, allocations: 0.925 MB / 0.9319 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002123/2.685, allocations: 88.16 kB / 0.932 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002427/2.685, allocations: 211.4 kB / 0.9322 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/2.685, allocations: 0 / 0.9322 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9059/3.591, allocations: 60.53 MB / 0.9913 GB, free: 422.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.7/17.29, allocations: 6.969 kB / 0.9913 GB, free: 422.8 MB / 0.8106 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)