Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8849/0.8849, allocations: 152.6 MB / 169.6 MB, free: 14.95 MB / 142.1 MB " [Timeout remaining time 179] 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.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005159/0.0005159, allocations: 19.7 kB / 245.6 MB, free: 15.61 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07371/0.07422, allocations: 33.06 MB / 278.7 MB, free: 0.625 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.TestInvSingularPressureLoss): time 1.757/1.831, allocations: 301.2 MB / 0.5663 GB, free: 2.562 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.55/2.381, allocations: 188 MB / 0.7499 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002273/2.381, allocations: 7.625 kB / 0.7499 GB, free: 15.23 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75: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/InvSingularPressureLoss.mo:30:3-31: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/InvSingularPressureLoss.mo:32:3-33: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.0001306/2.381, allocations: 39.59 kB / 0.7499 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002657/2.382, allocations: 116 kB / 0.75 GB, free: 15.22 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.03296/2.415, allocations: 11.54 MB / 0.7613 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005721/2.415, allocations: 385 kB / 0.7617 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002435/2.415, allocations: 153 kB / 0.7618 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/2.416, allocations: 158.1 kB / 0.762 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/2.416, allocations: 167.1 kB / 0.7621 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.746e-05/2.416, allocations: 39.09 kB / 0.7621 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03999/2.456, allocations: 19.94 MB / 0.7816 GB, free: 7.98 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001393/2.456, allocations: 74.34 kB / 0.7817 GB, free: 7.93 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000268/2.456, allocations: 179.2 kB / 0.7819 GB, free: 7.867 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02727/2.483, allocations: 9.758 MB / 0.7914 GB, free: 2.168 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/2.483, allocations: 0 / 0.7914 GB, free: 2.168 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.543e-06/2.483, allocations: 0 / 0.7914 GB, free: 2.168 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.295e-06/2.483, allocations: 0 / 0.7914 GB, free: 2.168 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.005394/2.489, allocations: 1.823 MB / 0.7932 GB, free: 0.8594 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/2.489, allocations: 10.19 kB / 0.7932 GB, free: 0.8594 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.963e-05/2.489, allocations: 40.58 kB / 0.7932 GB, free: 0.8398 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004069/2.489, allocations: 300.1 kB / 0.7935 GB, free: 0.5469 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.095e-05/2.489, allocations: 25.19 kB / 0.7935 GB, free: 0.5352 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.081e-05/2.489, allocations: 39.16 kB / 0.7936 GB, free: 0.5195 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005845/2.49, allocations: 358.3 kB / 0.7939 GB, free: 280 kB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/2.49, allocations: 0 / 0.7939 GB, free: 280 kB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/2.49, allocations: 13.03 kB / 0.7939 GB, free: 272 kB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/2.49, allocations: 7.719 kB / 0.7939 GB, free: 272 kB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004505/2.491, allocations: 233.3 kB / 0.7942 GB, free: 156 kB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07801/2.569, allocations: 32.15 MB / 0.8255 GB, free: 13.42 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002463/2.569, allocations: 62.55 kB / 0.8256 GB, free: 13.35 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.848e-05/2.569, allocations: 32.86 kB / 0.8256 GB, free: 13.32 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2595/2.828, allocations: 119 MB / 0.9418 GB, free: 9.113 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/2.828, allocations: 30.56 kB / 0.9418 GB, free: 9.074 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 2.234e-06/2.828, allocations: 0 / 0.9418 GB, free: 9.074 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0005262/2.829, allocations: 122.2 kB / 0.942 GB, free: 8.949 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/2.829, allocations: 55.34 kB / 0.942 GB, free: 8.883 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004613/2.829, allocations: 307.2 kB / 0.9423 GB, free: 8.574 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/2.829, allocations: 25.7 kB / 0.9423 GB, free: 8.543 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/2.83, allocations: 228.2 kB / 0.9425 GB, free: 8.32 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.903e-05/2.83, allocations: 27.78 kB / 0.9426 GB, free: 8.293 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/2.83, allocations: 53.66 kB / 0.9426 GB, free: 8.234 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001881/2.83, allocations: 342.8 kB / 0.9429 GB, free: 7.891 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/2.83, allocations: 39.97 kB / 0.943 GB, free: 7.852 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/2.83, allocations: 145.7 kB / 0.9431 GB, free: 7.66 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003488/2.831, allocations: 193.5 kB / 0.9433 GB, free: 7.422 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/2.831, allocations: 0 / 0.9433 GB, free: 7.422 MB / 0.7637 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005073/2.831, allocations: 222.6 kB / 0.9435 GB, free: 7.199 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/2.831, allocations: 14.36 kB / 0.9435 GB, free: 7.188 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/2.831, allocations: 4 kB / 0.9435 GB, free: 7.184 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/2.831, allocations: 4 kB / 0.9435 GB, free: 7.18 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006984/2.832, allocations: 119.8 kB / 0.9437 GB, free: 7.062 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/2.832, allocations: 9.094 kB / 0.9437 GB, free: 7.055 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002402/2.832, allocations: 39.77 kB / 0.9437 GB, free: 7.016 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/2.832, allocations: 8 kB / 0.9437 GB, free: 7.008 MB / 0.7637 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 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001734/2.832, allocations: 149.7 kB / 0.9439 GB, free: 6.852 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.14e-05/2.832, allocations: 27.81 kB / 0.9439 GB, free: 6.824 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003218/2.833, allocations: 120.7 kB / 0.944 GB, free: 6.695 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/2.833, allocations: 0 / 0.944 GB, free: 6.695 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/2.833, allocations: 1.656 kB / 0.944 GB, free: 6.695 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/2.833, allocations: 4 kB / 0.944 GB, free: 6.691 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4539/3.287, allocations: 115.2 MB / 1.056 GB, free: 416.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/3.287, allocations: 128 / 1.056 GB, free: 416.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.661e-05/3.287, allocations: 20.27 kB / 1.057 GB, free: 416.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/3.287, allocations: 3.938 kB / 1.057 GB, free: 416.2 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/3.287, allocations: 0 / 1.057 GB, free: 416.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/3.287, allocations: 3.312 kB / 1.057 GB, free: 416.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/3.287, allocations: 3.609 kB / 1.057 GB, free: 416.2 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002932/3.287, allocations: 155.8 kB / 1.057 GB, free: 416.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.249e-05/3.287, allocations: 107.3 kB / 1.057 GB, free: 416 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.83e-05/3.287, allocations: 3.656 kB / 1.057 GB, free: 416 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/3.287, allocations: 7.156 kB / 1.057 GB, free: 416 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.811e-05/3.287, allocations: 10.92 kB / 1.057 GB, free: 416 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.074e-06/3.287, allocations: 0 / 1.057 GB, free: 416 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001999/3.288, allocations: 225 kB / 1.057 GB, free: 415.9 MB / 0.8262 GB Notification: Performance of sort global known variables: time 7.1e-08/3.288, allocations: 1.125 kB / 1.057 GB, free: 415.9 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003808/3.291, allocations: 1.457 MB / 1.058 GB, free: 415.8 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007221/3.299, allocations: 2.222 MB / 1.061 GB, free: 414.5 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004645/3.299, allocations: 114.2 kB / 1.061 GB, free: 414.5 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/3.299, allocations: 0.9375 kB / 1.061 GB, free: 414.5 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.91e-05/3.299, allocations: 36.16 kB / 1.061 GB, free: 414.4 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000449/3.3, allocations: 64.16 kB / 1.061 GB, free: 414.4 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008434/3.3, allocations: 492 kB / 1.061 GB, free: 413.9 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/3.301, allocations: 0.7564 MB / 1.062 GB, free: 413.1 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.922e-05/3.301, allocations: 32.45 kB / 1.062 GB, free: 413.1 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/3.301, allocations: 0 / 1.062 GB, free: 413.1 MB / 0.8262 GB Notification: Performance of Templates: time 0.0423/3.343, allocations: 27.64 MB / 1.089 GB, free: 386.1 MB / 0.8262 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.173384638037533] Failed to read output from testmodel.py, exit status != 0: 3.493355746846646 3.502600236 1.017001576 Calling exit ...