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.8343/0.8343, allocations: 150.9 MB / 166.5 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003259/0.0003259, allocations: 14 kB / 236.5 MB, free: 2.062 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05377/0.05412, allocations: 31.35 MB / 267.9 MB, free: 7.617 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.Book.SimpleExamples.PressureLoss.TestBend): time 1.567/1.622, allocations: 294.9 MB / 0.5496 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4896/2.111, allocations: 190.5 MB / 0.7356 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000353/2.112, allocations: 9.031 kB / 0.7356 GB, free: 1.805 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.0003723/2.112, allocations: 206.7 kB / 0.7358 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004096/2.112, allocations: 277.9 kB / 0.7361 GB, free: 1.805 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.03211/2.145, allocations: 12.52 MB / 0.7483 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008535/2.145, allocations: 0.5348 MB / 0.7488 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003228/2.146, allocations: 274.4 kB / 0.7491 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/2.146, allocations: 262.9 kB / 0.7493 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003255/2.146, allocations: 356 kB / 0.7497 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.988e-05/2.146, allocations: 42.03 kB / 0.7497 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03648/2.183, allocations: 21.08 MB / 0.7703 GB, free: 12 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003135/2.183, allocations: 211.2 kB / 0.7705 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004203/2.184, allocations: 329.6 kB / 0.7708 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02525/2.209, allocations: 10.77 MB / 0.7813 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/2.209, allocations: 0 / 0.7813 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.164e-06/2.209, allocations: 1.031 kB / 0.7813 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.271e-05/2.209, allocations: 0 / 0.7813 GB, free: 12.18 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.005494/2.215, allocations: 2.233 MB / 0.7835 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/2.215, allocations: 11.88 kB / 0.7835 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.583e-05/2.215, allocations: 79.22 kB / 0.7836 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/2.215, allocations: 86.5 kB / 0.7837 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006702/2.216, allocations: 0.5538 MB / 0.7842 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/2.216, allocations: 34.05 kB / 0.7843 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4e-05/2.216, allocations: 36.88 kB / 0.7843 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005933/2.216, allocations: 488.8 kB / 0.7848 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/2.216, allocations: 1.156 kB / 0.7848 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/2.216, allocations: 21.58 kB / 0.7848 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/2.216, allocations: 11.5 kB / 0.7848 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005125/2.217, allocations: 412.5 kB / 0.7852 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008488/2.225, allocations: 6.689 MB / 0.7917 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005045/2.226, allocations: 122.5 kB / 0.7918 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.462e-05/2.226, allocations: 43.84 kB / 0.7919 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2832/2.509, allocations: 155.6 MB / 0.9439 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/2.509, allocations: 38.56 kB / 0.9439 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.894e-06/2.509, allocations: 0 / 0.9439 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002146/2.511, allocations: 465 kB / 0.9443 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.938e-05/2.512, allocations: 114 kB / 0.9445 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001515/2.513, allocations: 1.067 MB / 0.9455 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/2.513, allocations: 25.7 kB / 0.9455 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003001/2.513, allocations: 390.4 kB / 0.9459 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.195e-05/2.513, allocations: 38.98 kB / 0.9459 GB, free: 8.277 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/2.514, allocations: 77.53 kB / 0.946 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001587/2.514, allocations: 382.7 kB / 0.9464 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/2.514, allocations: 131.9 kB / 0.9465 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002801/2.514, allocations: 260.1 kB / 0.9467 GB, free: 7.371 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/2.515, allocations: 322.3 kB / 0.9471 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/2.515, allocations: 1.438 kB / 0.9471 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001447/2.516, allocations: 0.5549 MB / 0.9476 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/2.516, allocations: 15.92 kB / 0.9476 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/2.516, allocations: 4 kB / 0.9476 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/2.518, allocations: 202.6 kB / 0.9478 GB, free: 6.273 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/2.518, allocations: 47.08 kB / 0.9479 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005824/2.518, allocations: 0.6237 MB / 0.9485 GB, free: 5.586 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003748/2.519, allocations: 51.52 kB / 0.9485 GB, free: 5.535 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.145e-05/2.519, allocations: 21.19 kB / 0.9485 GB, free: 5.516 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.0003307/2.519, allocations: 259.9 kB / 0.9488 GB, free: 5.258 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/2.519, allocations: 67.31 kB / 0.9488 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007247/2.52, allocations: 264.9 kB / 0.9491 GB, free: 4.926 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/2.52, allocations: 5.078 kB / 0.9491 GB, free: 4.922 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/2.52, allocations: 0 / 0.9491 GB, free: 4.922 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/2.52, allocations: 6.5 kB / 0.9491 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/2.522, allocations: 0.8251 MB / 0.9499 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/2.522, allocations: 0 / 0.9499 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.042e-05/2.522, allocations: 13.05 kB / 0.9499 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001085/2.523, allocations: 157.4 kB / 0.9501 GB, free: 3.879 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/2.523, allocations: 8.5 kB / 0.9501 GB, free: 3.871 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005669/2.524, allocations: 0.6295 MB / 0.9507 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/2.524, allocations: 1.125 kB / 0.9507 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/2.525, allocations: 404.2 kB / 0.9511 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002701/2.525, allocations: 185.3 kB / 0.9513 GB, free: 2.613 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.711e-05/2.525, allocations: 4 kB / 0.9513 GB, free: 2.609 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/2.526, allocations: 13.05 kB / 0.9513 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.621e-05/2.526, allocations: 4 kB / 0.9513 GB, free: 2.594 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/2.526, allocations: 7.984 kB / 0.9513 GB, free: 2.586 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001036/2.527, allocations: 0.7802 MB / 0.9521 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.202e-06/2.527, allocations: 0 / 0.9521 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004669/2.531, allocations: 1.642 MB / 0.9537 GB, free: 172 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.009423/2.541, allocations: 3.269 MB / 0.9568 GB, free: 13.18 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007513/2.542, allocations: 240.4 kB / 0.9571 GB, free: 12.96 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/2.542, allocations: 0 / 0.9571 GB, free: 12.96 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001962/2.542, allocations: 61.25 kB / 0.9571 GB, free: 12.91 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008023/2.543, allocations: 94.45 kB / 0.9572 GB, free: 12.83 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/2.554, allocations: 6.303 MB / 0.9634 GB, free: 6.375 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004998/2.554, allocations: 0.9263 MB / 0.9643 GB, free: 5.426 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002282/2.555, allocations: 72.25 kB / 0.9644 GB, free: 5.355 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/2.555, allocations: 215.4 kB / 0.9646 GB, free: 5.148 MB / 0.795 GB Notification: Performance of SimCode: time 2.154e-06/2.555, allocations: 3.938 kB / 0.9646 GB, free: 5.145 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2792/2.834, allocations: 60.68 MB / 1.024 GB, free: 455.5 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/17.38, allocations: 5.938 kB / 1.024 GB, free: 455.5 MB / 0.8419 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)