Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.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.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8303/0.8303, allocations: 150.9 MB / 166.5 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003279/0.0003279, allocations: 16.33 kB / 237.1 MB, free: 1.785 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05526/0.05561, allocations: 31.35 MB / 268.4 MB, free: 7.062 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.TestSingularPressureLoss): time 1.628/1.684, allocations: 294.8 MB / 0.55 GB, free: 12.93 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5404/2.224, allocations: 187.4 MB / 0.733 GB, free: 2.082 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002779/2.225, allocations: 8.531 kB / 0.733 GB, free: 2.082 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/SingularPressureLoss.mo:27:3-28: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/SingularPressureLoss.mo:29:3-30:65: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.0001335/2.225, allocations: 36.92 kB / 0.7331 GB, free: 2.082 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.000323/2.225, allocations: 112.1 kB / 0.7332 GB, free: 2.082 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.03045/2.256, allocations: 11.31 MB / 0.7442 GB, free: 1.871 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005428/2.256, allocations: 369.6 kB / 0.7446 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002803/2.257, allocations: 193.4 kB / 0.7448 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/2.257, allocations: 145.2 kB / 0.7449 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/2.257, allocations: 160.9 kB / 0.7451 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.727e-05/2.257, allocations: 32.53 kB / 0.7451 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03594/2.293, allocations: 19.9 MB / 0.7645 GB, free: 1.367 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001183/2.293, allocations: 67.69 kB / 0.7646 GB, free: 1.359 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002882/2.293, allocations: 175.8 kB / 0.7648 GB, free: 1.352 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02603/2.319, allocations: 9.75 MB / 0.7743 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/2.319, allocations: 0 / 0.7743 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.653e-06/2.319, allocations: 0 / 0.7743 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.807e-06/2.319, allocations: 1 kB / 0.7743 GB, free: 13.77 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.006025/2.326, allocations: 1.803 MB / 0.776 GB, free: 12.56 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/2.326, allocations: 10.12 kB / 0.776 GB, free: 12.56 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/2.326, allocations: 43.45 kB / 0.7761 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004105/2.326, allocations: 294.3 kB / 0.7764 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/2.326, allocations: 24.72 kB / 0.7764 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/2.326, allocations: 32.66 kB / 0.7764 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005485/2.327, allocations: 346.8 kB / 0.7768 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/2.327, allocations: 1.094 kB / 0.7768 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/2.327, allocations: 16.59 kB / 0.7768 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/2.327, allocations: 14.09 kB / 0.7768 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003747/2.327, allocations: 216.6 kB / 0.777 GB, free: 12.11 MB / 0.6075 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008794/2.336, allocations: 6.083 MB / 0.7829 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00013/2.336, allocations: 60.16 kB / 0.783 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.075e-05/2.336, allocations: 20.8 kB / 0.783 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1567/2.493, allocations: 71.4 MB / 0.8527 GB, free: 14.98 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/2.493, allocations: 31.19 kB / 0.8528 GB, free: 14.95 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 2.154e-06/2.493, allocations: 4 kB / 0.8528 GB, free: 14.94 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.0007812/2.494, allocations: 226.1 kB / 0.853 GB, free: 14.72 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/2.494, allocations: 51.41 kB / 0.853 GB, free: 14.66 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003771/2.494, allocations: 282.7 kB / 0.8533 GB, free: 14.42 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/2.494, allocations: 26.2 kB / 0.8533 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/2.494, allocations: 233.2 kB / 0.8536 GB, free: 14.19 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/2.494, allocations: 19.58 kB / 0.8536 GB, free: 14.18 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.32e-05/2.495, allocations: 57.28 kB / 0.8536 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.000119/2.495, allocations: 335.8 kB / 0.8539 GB, free: 13.8 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.8e-05/2.495, allocations: 38.92 kB / 0.854 GB, free: 13.77 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/2.495, allocations: 137.8 kB / 0.8541 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/2.495, allocations: 183.7 kB / 0.8543 GB, free: 13.43 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/2.495, allocations: 13.05 kB / 0.8543 GB, free: 13.43 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005061/2.496, allocations: 243.7 kB / 0.8545 GB, free: 13.24 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/2.496, allocations: 4.469 kB / 0.8545 GB, free: 13.24 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/2.496, allocations: 9.5 kB / 0.8545 GB, free: 13.23 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008403/2.497, allocations: 115 kB / 0.8547 GB, free: 13.12 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/2.497, allocations: 36.83 kB / 0.8547 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004245/2.497, allocations: 0.5644 MB / 0.8552 GB, free: 12.52 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001803/2.497, allocations: 31.61 kB / 0.8553 GB, free: 12.49 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/2.497, allocations: 12 kB / 0.8553 GB, free: 12.48 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (singularPressureLoss.fluid,SourceP1.C.ftype,PuitsP1.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,singularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001487/2.498, allocations: 143.7 kB / 0.8554 GB, free: 12.35 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.096e-05/2.498, allocations: 24.42 kB / 0.8554 GB, free: 12.33 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000357/2.498, allocations: 141.9 kB / 0.8556 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/2.498, allocations: 0 / 0.8556 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/2.498, allocations: 0 / 0.8556 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/2.498, allocations: 0 / 0.8556 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003068/2.498, allocations: 302.2 kB / 0.8559 GB, free: 11.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/2.498, allocations: 0.75 kB / 0.8559 GB, free: 11.9 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.46e-05/2.498, allocations: 0 / 0.8559 GB, free: 11.9 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004061/2.499, allocations: 78.97 kB / 0.8559 GB, free: 11.83 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-06/2.499, allocations: 0 / 0.8559 GB, free: 11.83 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003789/2.499, allocations: 0.5617 MB / 0.8565 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/2.499, allocations: 0 / 0.8565 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002519/2.499, allocations: 140.6 kB / 0.8566 GB, free: 11.13 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 8.128e-05/2.5, allocations: 96.97 kB / 0.8567 GB, free: 11.02 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.653e-05/2.5, allocations: 2.5 kB / 0.8567 GB, free: 11.02 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.893e-05/2.5, allocations: 0 / 0.8567 GB, free: 11.02 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.182e-05/2.5, allocations: 13.8 kB / 0.8567 GB, free: 11 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/2.5, allocations: 0 / 0.8567 GB, free: 11 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002016/2.5, allocations: 201 kB / 0.8569 GB, free: 10.84 MB / 0.6856 GB Notification: Performance of sort global known variables: time 4.61e-07/2.5, allocations: 0 / 0.8569 GB, free: 10.84 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.004287/2.504, allocations: 1.458 MB / 0.8584 GB, free: 9.484 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 1 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007825/2.512, allocations: 2.219 MB / 0.8605 GB, free: 7.586 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0004664/2.513, allocations: 107.6 kB / 0.8606 GB, free: 7.512 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/2.513, allocations: 4.125 kB / 0.8606 GB, free: 7.508 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/2.513, allocations: 26.88 kB / 0.8606 GB, free: 7.488 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004463/2.513, allocations: 75.45 kB / 0.8607 GB, free: 7.441 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008199/2.514, allocations: 435.2 kB / 0.8611 GB, free: 7.016 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002929/2.514, allocations: 0.7558 MB / 0.8619 GB, free: 6.234 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001314/2.514, allocations: 35.42 kB / 0.8619 GB, free: 6.203 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.795e-05/2.514, allocations: 24 kB / 0.8619 GB, free: 6.18 MB / 0.6856 GB Notification: Performance of SimCode: time 2.41e-07/2.514, allocations: 4 kB / 0.8619 GB, free: 6.176 MB / 0.6856 GB Notification: Performance of Templates: time 0.06199/2.576, allocations: 45.36 MB / 0.9062 GB, free: 8.867 MB / 0.7325 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)