Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.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.TestRefP1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8009/0.8009, allocations: 150.9 MB / 166 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002629/0.0002629, allocations: 15.98 kB / 204 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1449, allocations: 31.32 MB / 235.4 MB, free: 5.453 MB / 190.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.TestRefP1): time 1.582/1.727, allocations: 294 MB / 0.517 GB, free: 12.49 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4915/2.218, allocations: 195 MB / 0.7074 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004832/2.219, allocations: 10.69 kB / 0.7074 GB, free: 3.441 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/RefP.mo:10:3-11: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/BoundaryConditions/RefP.mo:12:3-13:65:writable] Warning: Connector C2 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/Machines/StaticCentrifugalPump.mo:63:3-64: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/Machines/StaticCentrifugalPump.mo:65:3-66:65:writable] Warning: Connector C2 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/LumpedStraightPipe.mo:54:3-55: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/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 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/Source.mo:53:3-54:52: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/Sink.mo:39:3-40: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/BoundaryConditions/RefQ.mo:10:3-11: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/BoundaryConditions/RefQ.mo:12:3-13: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.0002202/2.219, allocations: 62.45 kB / 0.7075 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004559/2.22, allocations: 200 kB / 0.7077 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02808/2.248, allocations: 10.2 MB / 0.7177 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001102/2.249, allocations: 0.798 MB / 0.7184 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004801/2.249, allocations: 474.2 kB / 0.7189 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003307/2.25, allocations: 317 kB / 0.7192 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000318/2.25, allocations: 378.6 kB / 0.7195 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.349e-05/2.25, allocations: 60.38 kB / 0.7196 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0306/2.281, allocations: 19.09 MB / 0.7382 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002972/2.281, allocations: 167.4 kB / 0.7384 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005557/2.282, allocations: 394.6 kB / 0.7388 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02324/2.305, allocations: 10.59 MB / 0.7491 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/2.305, allocations: 3.188 kB / 0.7491 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.154e-06/2.305, allocations: 0 / 0.7491 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.064e-05/2.305, allocations: 2.906 kB / 0.7491 GB, free: 15.38 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.005503/2.311, allocations: 2.218 MB / 0.7513 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/2.311, allocations: 8.438 kB / 0.7513 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001485/2.311, allocations: 95.86 kB / 0.7514 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004832/2.311, allocations: 429.3 kB / 0.7518 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.014e-05/2.311, allocations: 57.62 kB / 0.7519 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.557e-05/2.311, allocations: 73.03 kB / 0.7519 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/2.312, allocations: 0.7386 MB / 0.7527 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/2.312, allocations: 3.594 kB / 0.7527 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.387e-05/2.313, allocations: 29.5 kB / 0.7527 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/2.313, allocations: 20.02 kB / 0.7527 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008858/2.313, allocations: 0.5547 MB / 0.7532 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07004/2.383, allocations: 33.13 MB / 0.7856 GB, free: 440 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006479/2.384, allocations: 302 kB / 0.7859 GB, free: 232 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/2.384, allocations: 119.6 kB / 0.786 GB, free: 148 kB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6547/3.039, allocations: 250.2 MB / 1.03 GB, free: 423.6 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/3.039, allocations: 38.38 kB / 1.03 GB, free: 423.6 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=27): time 2.194e-06/3.039, allocations: 0 / 1.03 GB, free: 423.6 MB / 0.8106 GB Notification: Performance of matching and sorting (n=27): time 0.004927/3.044, allocations: 1.111 MB / 1.031 GB, free: 422.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.553e-05/3.044, allocations: 62.22 kB / 1.031 GB, free: 422.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005102/3.045, allocations: 483.7 kB / 1.032 GB, free: 422.1 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/3.045, allocations: 28.89 kB / 1.032 GB, free: 422.1 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/3.045, allocations: 365.7 kB / 1.032 GB, free: 421.9 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.895e-05/3.045, allocations: 91.25 kB / 1.032 GB, free: 421.8 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/3.045, allocations: 96.55 kB / 1.032 GB, free: 421.7 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 6.301e-05/3.045, allocations: 353.2 kB / 1.033 GB, free: 421.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/3.045, allocations: 107 kB / 1.033 GB, free: 421.3 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/3.046, allocations: 212.8 kB / 1.033 GB, free: 421.1 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004163/3.046, allocations: 328.6 kB / 1.033 GB, free: 420.9 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/3.046, allocations: 8 kB / 1.033 GB, free: 420.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00208/3.048, allocations: 0.6657 MB / 1.034 GB, free: 420.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/3.048, allocations: 8 kB / 1.034 GB, free: 420.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/3.048, allocations: 4 kB / 1.034 GB, free: 420.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009228/3.049, allocations: 211.8 kB / 1.034 GB, free: 420.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/3.049, allocations: 56.28 kB / 1.034 GB, free: 420.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000776/3.05, allocations: 1.245 MB / 1.036 GB, free: 418.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003113/3.05, allocations: 54.94 kB / 1.036 GB, free: 418.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.047e-05/3.05, allocations: 23.73 kB / 1.036 GB, free: 418.8 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 7 (source.C.ftype,pump.fluid,lumpedStraightPipe.fluid,sink.fluid,source.fluid1,refQ.C1.diff_on_2,lumpedStraightPipe.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002259/3.051, allocations: 185.8 kB / 1.036 GB, free: 418.7 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.728e-05/3.051, allocations: 47.56 kB / 1.036 GB, free: 418.6 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002033/3.053, allocations: 0.5892 MB / 1.036 GB, free: 418.2 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/3.053, allocations: 8.594 kB / 1.036 GB, free: 418.1 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/3.053, allocations: 4 kB / 1.036 GB, free: 418.1 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/3.053, allocations: 0 / 1.036 GB, free: 418.1 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005125/3.053, allocations: 0.5294 MB / 1.037 GB, free: 417.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/3.053, allocations: 0 / 1.037 GB, free: 417.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.648e-05/3.053, allocations: 23.23 kB / 1.037 GB, free: 417.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000775/3.054, allocations: 197.5 kB / 1.037 GB, free: 417.5 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/3.054, allocations: 12.42 kB / 1.037 GB, free: 417.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006827/3.055, allocations: 1.243 MB / 1.038 GB, free: 416.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/3.055, allocations: 0 / 1.038 GB, free: 416.3 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/3.057, allocations: 0.6167 MB / 1.039 GB, free: 415.8 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/3.057, allocations: 155 kB / 1.039 GB, free: 415.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.867e-05/3.057, allocations: 3.75 kB / 1.039 GB, free: 415.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/3.057, allocations: 14.66 kB / 1.039 GB, free: 415.6 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/3.057, allocations: 19.95 kB / 1.039 GB, free: 415.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/3.057, allocations: 15.69 kB / 1.039 GB, free: 415.6 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002947/3.058, allocations: 328.1 kB / 1.04 GB, free: 415.3 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.81e-07/3.058, allocations: 0 / 1.04 GB, free: 415.3 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004117/3.062, allocations: 1.693 MB / 1.041 GB, free: 413.9 MB / 0.8106 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008735/3.071, allocations: 2.61 MB / 1.044 GB, free: 411.9 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001113/3.072, allocations: 299.4 kB / 1.044 GB, free: 411.7 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/3.072, allocations: 0 / 1.044 GB, free: 411.7 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000326/3.072, allocations: 141.6 kB / 1.044 GB, free: 411.6 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007482/3.073, allocations: 90.34 kB / 1.044 GB, free: 411.5 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001709/3.075, allocations: 1.228 MB / 1.045 GB, free: 410.3 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/3.075, allocations: 0.8815 MB / 1.046 GB, free: 409.4 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002203/3.075, allocations: 68.11 kB / 1.046 GB, free: 409.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.552e-05/3.075, allocations: 35.44 kB / 1.046 GB, free: 409.3 MB / 0.8106 GB Notification: Performance of SimCode: time 5.31e-07/3.075, allocations: 0 / 1.046 GB, free: 409.3 MB / 0.8106 GB Notification: Performance of Templates: time 0.05114/3.126, allocations: 50.92 MB / 1.096 GB, free: 359 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe 2>&1)