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: translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.833/0.833, allocations: 150.9 MB / 166.5 MB, free: 14.16 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003336, allocations: 18.94 kB / 237 MB, free: 1.914 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0539/0.05425, allocations: 31.34 MB / 268.4 MB, free: 7.086 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.596/1.651, allocations: 294.9 MB / 0.5501 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4912/2.142, allocations: 190.5 MB / 0.7361 GB, free: 1.824 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002835/2.142, allocations: 10.25 kB / 0.7361 GB, free: 1.824 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.0003481/2.143, allocations: 205.6 kB / 0.7363 GB, free: 1.824 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004165/2.143, allocations: 278.8 kB / 0.7366 GB, free: 1.824 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.03273/2.176, allocations: 12.53 MB / 0.7488 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006662/2.176, allocations: 0.533 MB / 0.7493 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002749/2.177, allocations: 279.8 kB / 0.7496 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002482/2.177, allocations: 256.6 kB / 0.7498 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002795/2.177, allocations: 352.6 kB / 0.7502 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.603e-05/2.177, allocations: 41.38 kB / 0.7502 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03246/2.21, allocations: 21.08 MB / 0.7708 GB, free: 68 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002694/2.21, allocations: 202.3 kB / 0.771 GB, free: 32 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000367/2.21, allocations: 325.6 kB / 0.7713 GB, free: 12 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02615/2.237, allocations: 10.75 MB / 0.7818 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/2.237, allocations: 5.688 kB / 0.7818 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.272e-06/2.237, allocations: 3.188 kB / 0.7818 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.867e-05/2.237, allocations: 0.9062 kB / 0.7818 GB, free: 12.14 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.005375/2.242, allocations: 2.232 MB / 0.784 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/2.242, allocations: 9.438 kB / 0.784 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/2.242, allocations: 82.09 kB / 0.7841 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005965/2.243, allocations: 0.5504 MB / 0.7846 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/2.243, allocations: 35.38 kB / 0.7847 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.143e-05/2.243, allocations: 35.53 kB / 0.7847 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006225/2.244, allocations: 497.9 kB / 0.7852 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/2.244, allocations: 0.9062 kB / 0.7852 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/2.244, allocations: 16.41 kB / 0.7852 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/2.244, allocations: 11.22 kB / 0.7852 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005155/2.244, allocations: 416.1 kB / 0.7856 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009802/2.254, allocations: 6.682 MB / 0.7921 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006395/2.255, allocations: 122 kB / 0.7922 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/2.255, allocations: 47.52 kB / 0.7923 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4844/2.739, allocations: 155.7 MB / 0.9443 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.089e-05/2.739, allocations: 34.86 kB / 0.9443 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 4.659e-06/2.739, allocations: 4 kB / 0.9443 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002252/2.742, allocations: 466.9 kB / 0.9448 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/2.742, allocations: 106.8 kB / 0.9449 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/2.743, allocations: 1.063 MB / 0.9459 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/2.743, allocations: 33.7 kB / 0.9459 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000317/2.744, allocations: 392.3 kB / 0.9463 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.539e-05/2.744, allocations: 39.91 kB / 0.9463 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/2.744, allocations: 73.59 kB / 0.9464 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001751/2.744, allocations: 378.8 kB / 0.9468 GB, free: 8.094 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/2.744, allocations: 128 kB / 0.9469 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/2.744, allocations: 266 kB / 0.9472 GB, free: 7.652 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003881/2.745, allocations: 322.2 kB / 0.9475 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/2.745, allocations: 9.203 kB / 0.9475 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001402/2.746, allocations: 0.5533 MB / 0.948 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/2.746, allocations: 15.88 kB / 0.948 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/2.746, allocations: 4 kB / 0.948 GB, free: 6.738 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001532/2.748, allocations: 193.1 kB / 0.9482 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/2.748, allocations: 54.25 kB / 0.9483 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000593/2.749, allocations: 0.6304 MB / 0.9489 GB, free: 5.855 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/2.749, allocations: 47.52 kB / 0.9489 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/2.749, allocations: 16 kB / 0.9489 GB, free: 5.793 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.0003093/2.749, allocations: 270.9 kB / 0.9492 GB, free: 5.523 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/2.749, allocations: 63.25 kB / 0.9493 GB, free: 5.461 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006877/2.75, allocations: 254.6 kB / 0.9495 GB, free: 5.203 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/2.75, allocations: 0 / 0.9495 GB, free: 5.203 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/2.75, allocations: 0 / 0.9495 GB, free: 5.203 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/2.75, allocations: 9.094 kB / 0.9495 GB, free: 5.195 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/2.752, allocations: 0.8344 MB / 0.9503 GB, free: 4.312 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/2.752, allocations: 5.094 kB / 0.9503 GB, free: 4.309 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.288e-05/2.752, allocations: 7.094 kB / 0.9503 GB, free: 4.305 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/2.753, allocations: 155.1 kB / 0.9505 GB, free: 4.152 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/2.753, allocations: 12 kB / 0.9505 GB, free: 4.141 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005273/2.754, allocations: 0.6287 MB / 0.9511 GB, free: 3.492 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/2.754, allocations: 4.031 kB / 0.9511 GB, free: 3.488 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/2.755, allocations: 413.7 kB / 0.9515 GB, free: 3.078 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002134/2.755, allocations: 172.1 kB / 0.9517 GB, free: 2.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.676e-05/2.755, allocations: 7.938 kB / 0.9517 GB, free: 2.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/2.755, allocations: 11.98 kB / 0.9517 GB, free: 2.871 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.75e-05/2.756, allocations: 13.19 kB / 0.9517 GB, free: 2.859 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/2.756, allocations: 0.8125 kB / 0.9517 GB, free: 2.859 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0009339/2.757, allocations: 0.7841 MB / 0.9525 GB, free: 2.078 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/2.757, allocations: 0 / 0.9525 GB, free: 2.078 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004345/2.761, allocations: 1.643 MB / 0.9541 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.008124/2.769, allocations: 2.498 MB / 0.9565 GB, free: 14.25 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006202/2.77, allocations: 232.4 kB / 0.9567 GB, free: 14.03 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/2.77, allocations: 0 / 0.9567 GB, free: 14.03 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001965/2.77, allocations: 65.23 kB / 0.9568 GB, free: 13.97 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006468/2.771, allocations: 94.81 kB / 0.9569 GB, free: 13.89 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/2.772, allocations: 1.055 MB / 0.9579 GB, free: 12.8 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005221/2.773, allocations: 0.9263 MB / 0.9588 GB, free: 11.86 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.000203/2.773, allocations: 79.06 kB / 0.9589 GB, free: 11.78 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.808e-05/2.773, allocations: 35.44 kB / 0.9589 GB, free: 11.75 MB / 0.795 GB Notification: Performance of SimCode: time 3.41e-07/2.773, allocations: 1.203 kB / 0.9589 GB, free: 11.75 MB / 0.795 GB Notification: Performance of Templates: time 0.0694/2.843, allocations: 51.53 MB / 1.009 GB, free: 8.273 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.makefile (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 & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)