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.804/0.804, allocations: 150.9 MB / 166.5 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003664/0.0003661, allocations: 21.5 kB / 236.6 MB, free: 1.965 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06076/0.06114, allocations: 31.35 MB / 267.9 MB, free: 7.523 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.Fluid.Examples.SimpleExamples.TestBend): time 1.673/1.734, allocations: 294.9 MB / 0.5497 GB, free: 12.79 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5405/2.274, allocations: 190.5 MB / 0.7357 GB, free: 1.762 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004681/2.275, allocations: 9.812 kB / 0.7357 GB, free: 1.762 MB / 0.5919 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.0005007/2.275, allocations: 203.7 kB / 0.7359 GB, free: 1.762 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0005174/2.276, allocations: 281.1 kB / 0.7362 GB, free: 1.762 MB / 0.5919 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.0344/2.31, allocations: 12.28 MB / 0.7482 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008951/2.311, allocations: 0.5298 MB / 0.7487 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003256/2.312, allocations: 288.5 kB / 0.7489 GB, free: 1.477 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002832/2.312, allocations: 253.5 kB / 0.7492 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003218/2.312, allocations: 359.1 kB / 0.7495 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.991e-05/2.312, allocations: 41.66 kB / 0.7496 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03645/2.349, allocations: 21.08 MB / 0.7702 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000287/2.349, allocations: 202.4 kB / 0.7703 GB, free: 15.95 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003909/2.349, allocations: 321.9 kB / 0.7707 GB, free: 15.93 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0277/2.377, allocations: 10.74 MB / 0.7811 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 9.849e-06/2.377, allocations: 10.44 kB / 0.7812 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.074e-06/2.377, allocations: 0 / 0.7812 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.174e-05/2.377, allocations: 2.719 kB / 0.7812 GB, free: 12.04 MB / 0.6075 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.006994/2.384, allocations: 2.229 MB / 0.7833 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/2.384, allocations: 11.69 kB / 0.7833 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.761e-05/2.384, allocations: 76.75 kB / 0.7834 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/2.385, allocations: 83.09 kB / 0.7835 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007209/2.385, allocations: 0.5585 MB / 0.784 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/2.385, allocations: 32.81 kB / 0.7841 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.437e-05/2.385, allocations: 37.38 kB / 0.7841 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006376/2.386, allocations: 492.5 kB / 0.7846 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/2.386, allocations: 0.7188 kB / 0.7846 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/2.386, allocations: 14.94 kB / 0.7846 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/2.386, allocations: 12.09 kB / 0.7846 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005347/2.387, allocations: 414.9 kB / 0.785 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009764/2.396, allocations: 6.686 MB / 0.7915 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005523/2.397, allocations: 124.1 kB / 0.7916 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.605e-05/2.397, allocations: 44.3 kB / 0.7917 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3225/2.72, allocations: 155.7 MB / 0.9437 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/2.72, allocations: 30.56 kB / 0.9437 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.535e-06/2.72, allocations: 3.938 kB / 0.9437 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002258/2.722, allocations: 470.2 kB / 0.9442 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.476e-05/2.722, allocations: 106.8 kB / 0.9443 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00164/2.724, allocations: 1.071 MB / 0.9453 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/2.724, allocations: 29.7 kB / 0.9454 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003002/2.724, allocations: 390.3 kB / 0.9457 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.438e-05/2.724, allocations: 31.55 kB / 0.9458 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/2.724, allocations: 81.59 kB / 0.9458 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001701/2.724, allocations: 382.7 kB / 0.9462 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001819/2.725, allocations: 127.9 kB / 0.9463 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/2.725, allocations: 264.2 kB / 0.9466 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003924/2.725, allocations: 317.3 kB / 0.9469 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/2.725, allocations: 4 kB / 0.9469 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001415/2.727, allocations: 0.5584 MB / 0.9474 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/2.727, allocations: 7.938 kB / 0.9474 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/2.727, allocations: 8.031 kB / 0.9474 GB, free: 6.734 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001457/2.728, allocations: 204.3 kB / 0.9476 GB, free: 6.539 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/2.728, allocations: 46.17 kB / 0.9477 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000617/2.729, allocations: 0.6257 MB / 0.9483 GB, free: 5.852 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000353/2.729, allocations: 47.52 kB / 0.9483 GB, free: 5.805 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/2.729, allocations: 16.06 kB / 0.9483 GB, free: 5.789 MB / 0.7794 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.0003472/2.73, allocations: 275 kB / 0.9486 GB, free: 5.52 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/2.73, allocations: 59.25 kB / 0.9487 GB, free: 5.461 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007293/2.731, allocations: 261.6 kB / 0.9489 GB, free: 5.199 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/2.731, allocations: 8.297 kB / 0.9489 GB, free: 5.195 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/2.731, allocations: 0 / 0.9489 GB, free: 5.195 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/2.731, allocations: 7.922 kB / 0.9489 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/2.733, allocations: 0.8306 MB / 0.9497 GB, free: 4.309 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/2.733, allocations: 0 / 0.9497 GB, free: 4.309 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.305e-05/2.733, allocations: 4 kB / 0.9497 GB, free: 4.305 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/2.734, allocations: 156.3 kB / 0.9499 GB, free: 4.152 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/2.734, allocations: 11.94 kB / 0.9499 GB, free: 4.141 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000553/2.734, allocations: 0.6364 MB / 0.9505 GB, free: 3.484 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/2.734, allocations: 0 / 0.9505 GB, free: 3.484 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/2.736, allocations: 413.7 kB / 0.9509 GB, free: 3.074 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002734/2.736, allocations: 176.1 kB / 0.9511 GB, free: 2.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.592e-05/2.736, allocations: 5.203 kB / 0.9511 GB, free: 2.879 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/2.736, allocations: 8 kB / 0.9511 GB, free: 2.871 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/2.736, allocations: 7.984 kB / 0.9511 GB, free: 2.863 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/2.736, allocations: 4 kB / 0.9511 GB, free: 2.859 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0009537/2.737, allocations: 0.788 MB / 0.9519 GB, free: 2.074 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/2.737, allocations: 0 / 0.9519 GB, free: 2.074 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004862/2.742, allocations: 1.639 MB / 0.9535 GB, free: 444 kB / 0.7794 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.009454/2.752, allocations: 3.264 MB / 0.9567 GB, free: 13.46 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007275/2.752, allocations: 245.3 kB / 0.9569 GB, free: 13.23 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/2.752, allocations: 0 / 0.9569 GB, free: 13.23 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001938/2.753, allocations: 56.02 kB / 0.957 GB, free: 13.18 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007837/2.753, allocations: 100.1 kB / 0.9571 GB, free: 13.09 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/2.765, allocations: 6.29 MB / 0.9632 GB, free: 6.641 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005671/2.766, allocations: 0.9293 MB / 0.9641 GB, free: 5.691 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002459/2.766, allocations: 81.3 kB / 0.9642 GB, free: 5.613 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/2.766, allocations: 215.4 kB / 0.9644 GB, free: 5.406 MB / 0.795 GB Notification: Performance of SimCode: time 8.42e-07/2.766, allocations: 0 / 0.9644 GB, free: 5.406 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2961/3.062, allocations: 60.87 MB / 1.024 GB, free: 455.3 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/17.69, allocations: 11.3 kB / 1.024 GB, free: 455.3 MB / 0.8419 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)