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.8752/0.8752, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.0003549, allocations: 14.16 kB / 237.7 MB, free: 1.848 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05599/0.05636, allocations: 31.34 MB / 269.1 MB, free: 7.125 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.636/1.692, allocations: 294.8 MB / 0.5507 GB, free: 12.9 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.522/2.214, allocations: 190.5 MB / 0.7367 GB, free: 1.793 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002874/2.215, allocations: 6.5 kB / 0.7367 GB, free: 1.793 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.0003438/2.215, allocations: 204.7 kB / 0.7369 GB, free: 1.793 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004032/2.215, allocations: 275.9 kB / 0.7372 GB, free: 1.793 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.03143/2.247, allocations: 12.29 MB / 0.7492 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0009012/2.248, allocations: 0.5361 MB / 0.7497 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003398/2.248, allocations: 277.5 kB / 0.75 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003031/2.249, allocations: 250.4 kB / 0.7502 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003742/2.249, allocations: 359.1 kB / 0.7506 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 6.076e-05/2.249, allocations: 42.75 kB / 0.7506 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03845/2.287, allocations: 21.08 MB / 0.7712 GB, free: 8 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003447/2.288, allocations: 212.7 kB / 0.7714 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000446/2.288, allocations: 326.7 kB / 0.7717 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02492/2.313, allocations: 10.75 MB / 0.7822 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/2.313, allocations: 6.594 kB / 0.7822 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.623e-06/2.313, allocations: 0 / 0.7822 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.849e-06/2.313, allocations: 0.8438 kB / 0.7822 GB, free: 12.13 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.005361/2.319, allocations: 2.234 MB / 0.7844 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/2.319, allocations: 11.66 kB / 0.7844 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/2.319, allocations: 84.44 kB / 0.7845 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007149/2.32, allocations: 0.552 MB / 0.785 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.623e-05/2.32, allocations: 33.84 kB / 0.785 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.604e-05/2.32, allocations: 38.34 kB / 0.7851 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006082/2.32, allocations: 495.6 kB / 0.7856 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/2.32, allocations: 1 kB / 0.7856 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/2.32, allocations: 18.17 kB / 0.7856 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/2.32, allocations: 11.72 kB / 0.7856 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005315/2.321, allocations: 416.2 kB / 0.786 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008883/2.33, allocations: 6.674 MB / 0.7925 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005424/2.33, allocations: 129.3 kB / 0.7926 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.436e-05/2.33, allocations: 45.28 kB / 0.7927 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.311/2.641, allocations: 155.6 MB / 0.9447 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.704e-05/2.642, allocations: 38.56 kB / 0.9447 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 3.086e-06/2.642, allocations: 0 / 0.9447 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.00237/2.644, allocations: 469.8 kB / 0.9451 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.028e-05/2.644, allocations: 114.8 kB / 0.9453 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/2.645, allocations: 1.067 MB / 0.9463 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/2.645, allocations: 30.8 kB / 0.9463 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002908/2.646, allocations: 382 kB / 0.9467 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.526e-05/2.646, allocations: 39.45 kB / 0.9467 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001825/2.646, allocations: 73.59 kB / 0.9468 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001697/2.646, allocations: 378.8 kB / 0.9472 GB, free: 8.184 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/2.646, allocations: 127.9 kB / 0.9473 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003411/2.647, allocations: 269.3 kB / 0.9475 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/2.647, allocations: 316.2 kB / 0.9478 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/2.647, allocations: 7.938 kB / 0.9478 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001361/2.648, allocations: 0.558 MB / 0.9484 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/2.648, allocations: 13.7 kB / 0.9484 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/2.648, allocations: 7.938 kB / 0.9484 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001609/2.65, allocations: 198.7 kB / 0.9486 GB, free: 6.641 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/2.65, allocations: 47.17 kB / 0.9486 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006695/2.651, allocations: 0.6257 MB / 0.9493 GB, free: 5.953 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/2.651, allocations: 56.39 kB / 0.9493 GB, free: 5.898 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/2.651, allocations: 22.09 kB / 0.9493 GB, free: 5.879 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.0002813/2.652, allocations: 263.9 kB / 0.9496 GB, free: 5.617 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.562e-05/2.652, allocations: 63.25 kB / 0.9496 GB, free: 5.555 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007311/2.652, allocations: 261.2 kB / 0.9499 GB, free: 5.293 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/2.652, allocations: 7.984 kB / 0.9499 GB, free: 5.285 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/2.652, allocations: 0 / 0.9499 GB, free: 5.285 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002962/2.653, allocations: 164.2 kB / 0.9501 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/2.653, allocations: 11.94 kB / 0.9501 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/2.653, allocations: 7.984 kB / 0.9501 GB, free: 5.086 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/2.653, allocations: 6.578 kB / 0.9501 GB, free: 5.082 MB / 0.7794 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006007/2.654, allocations: 264.2 kB / 0.9503 GB, free: 4.824 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003918/2.654, allocations: 391.2 kB / 0.9507 GB, free: 4.43 MB / 0.7794 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.629e-05/2.654, allocations: 38.2 kB / 0.9507 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008324/2.655, allocations: 0.7724 MB / 0.9515 GB, free: 3.625 MB / 0.7794 GB Notification: Performance of Backend: time 4.61e-07/2.655, allocations: 4 kB / 0.9515 GB, free: 3.621 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0152/2.67, allocations: 3.954 MB / 0.9554 GB, free: 136 kB / 0.7794 GB Notification: Performance of SimCode: time 0.002129/2.672, allocations: 1.644 MB / 0.957 GB, free: 14.45 MB / 0.795 GB Notification: Performance of Templates: time 0.2761/2.948, allocations: 78.37 MB / 1.034 GB, free: 460.5 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)