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.9015/0.9015, allocations: 150.8 MB / 166.6 MB, free: 11.17 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004103/0.0004104, allocations: 15.98 kB / 204.7 MB, free: 6.176 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2416, allocations: 31.33 MB / 236 MB, free: 3.902 MB / 186.7 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.654/1.896, allocations: 293.3 MB / 0.5169 GB, free: 8.676 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4997/2.395, allocations: 195 MB / 0.7074 GB, free: 1.754 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004187/2.396, allocations: 9.562 kB / 0.7074 GB, free: 1.754 MB / 0.5573 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.0002255/2.396, allocations: 64.05 kB / 0.7075 GB, free: 1.75 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0004953/2.397, allocations: 199.7 kB / 0.7077 GB, free: 1.746 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0292/2.426, allocations: 10.21 MB / 0.7176 GB, free: 1.406 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001132/2.427, allocations: 0.8039 MB / 0.7184 GB, free: 1.406 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005975/2.428, allocations: 480.3 kB / 0.7189 GB, free: 1.301 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005686/2.428, allocations: 319.3 kB / 0.7192 GB, free: 1.301 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005845/2.429, allocations: 377 kB / 0.7195 GB, free: 1.301 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001472/2.429, allocations: 61 kB / 0.7196 GB, free: 1.301 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03436/2.463, allocations: 19.17 MB / 0.7383 GB, free: 13.83 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002778/2.464, allocations: 156.4 kB / 0.7385 GB, free: 13.8 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0006885/2.464, allocations: 402.9 kB / 0.7389 GB, free: 13.77 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.02311/2.487, allocations: 10.58 MB / 0.7492 GB, free: 9.957 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 9.398e-06/2.487, allocations: 4 kB / 0.7492 GB, free: 9.953 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.635e-06/2.487, allocations: 0 / 0.7492 GB, free: 9.953 MB / 0.573 GB Notification: Performance of Transformations before backend: time 6.22e-05/2.488, allocations: 1.094 kB / 0.7492 GB, free: 9.953 MB / 0.573 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.006708/2.494, allocations: 2.216 MB / 0.7514 GB, free: 8.551 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/2.494, allocations: 7.812 kB / 0.7514 GB, free: 8.551 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/2.494, allocations: 94.44 kB / 0.7515 GB, free: 8.508 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005648/2.495, allocations: 426 kB / 0.7519 GB, free: 8.191 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.944e-05/2.495, allocations: 62.25 kB / 0.7519 GB, free: 8.191 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.141e-05/2.495, allocations: 74.72 kB / 0.752 GB, free: 8.191 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/2.496, allocations: 0.738 MB / 0.7527 GB, free: 7.969 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/2.496, allocations: 3.938 kB / 0.7527 GB, free: 7.965 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.028e-05/2.496, allocations: 31.69 kB / 0.7527 GB, free: 7.965 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.806e-05/2.496, allocations: 20.73 kB / 0.7528 GB, free: 7.965 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/2.498, allocations: 0.551 MB / 0.7533 GB, free: 7.887 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07868/2.576, allocations: 33.13 MB / 0.7857 GB, free: 6.086 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006945/2.577, allocations: 298.5 kB / 0.7859 GB, free: 5.84 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002213/2.577, allocations: 113.3 kB / 0.786 GB, free: 5.727 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6927/3.27, allocations: 250.2 MB / 1.03 GB, free: 390.5 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/3.27, allocations: 42.44 kB / 1.03 GB, free: 390.5 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=27): time 1.793e-06/3.27, allocations: 0 / 1.03 GB, free: 390.5 MB / 0.7917 GB Notification: Performance of matching and sorting (n=27): time 0.004784/3.275, allocations: 1.104 MB / 1.031 GB, free: 389.5 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.036e-05/3.275, allocations: 55.41 kB / 1.032 GB, free: 389.4 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004594/3.275, allocations: 485.2 kB / 1.032 GB, free: 389.1 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/3.275, allocations: 29.64 kB / 1.032 GB, free: 389 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002095/3.276, allocations: 362.2 kB / 1.032 GB, free: 388.8 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 7.427e-05/3.276, allocations: 100.1 kB / 1.032 GB, free: 388.7 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/3.276, allocations: 92.7 kB / 1.033 GB, free: 388.7 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 8.087e-05/3.276, allocations: 365.5 kB / 1.033 GB, free: 388.3 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003212/3.276, allocations: 100.3 kB / 1.033 GB, free: 388.3 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004019/3.277, allocations: 219.9 kB / 1.033 GB, free: 388.1 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007054/3.277, allocations: 326.5 kB / 1.034 GB, free: 387.8 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/3.277, allocations: 4 kB / 1.034 GB, free: 387.8 MB / 0.7917 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.003172/3.281, allocations: 0.6628 MB / 1.034 GB, free: 387.3 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/3.281, allocations: 11.94 kB / 1.034 GB, free: 387.2 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.549e-05/3.281, allocations: 4.844 kB / 1.034 GB, free: 387.2 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001314/3.282, allocations: 198.8 kB / 1.034 GB, free: 387.1 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003105/3.282, allocations: 64.62 kB / 1.034 GB, free: 387 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/3.283, allocations: 1.242 MB / 1.036 GB, free: 385.8 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/3.284, allocations: 62.86 kB / 1.036 GB, free: 385.8 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-05/3.284, allocations: 16 kB / 1.036 GB, free: 385.7 MB / 0.7917 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.0003132/3.284, allocations: 186.4 kB / 1.036 GB, free: 385.6 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/3.284, allocations: 47.44 kB / 1.036 GB, free: 385.5 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003026/3.288, allocations: 0.5892 MB / 1.037 GB, free: 385.1 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/3.288, allocations: 5.406 kB / 1.037 GB, free: 385.1 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/3.288, allocations: 0 / 1.037 GB, free: 385.1 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/3.288, allocations: 0 / 1.037 GB, free: 385.1 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007968/3.288, allocations: 0.5292 MB / 1.037 GB, free: 384.6 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/3.288, allocations: 0.9375 kB / 1.037 GB, free: 384.6 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/3.289, allocations: 19.98 kB / 1.037 GB, free: 384.6 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001242/3.29, allocations: 206.4 kB / 1.037 GB, free: 384.4 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.854e-05/3.29, allocations: 11.81 kB / 1.037 GB, free: 384.4 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001006/3.291, allocations: 1.237 MB / 1.038 GB, free: 383.2 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/3.291, allocations: 1.5 kB / 1.038 GB, free: 383.2 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003568/3.294, allocations: 1.45 MB / 1.04 GB, free: 382 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002323/3.295, allocations: 163.5 kB / 1.04 GB, free: 381.8 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.495e-05/3.295, allocations: 3.812 kB / 1.04 GB, free: 381.8 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003369/3.295, allocations: 11.92 kB / 1.04 GB, free: 381.8 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.563e-05/3.295, allocations: 11.98 kB / 1.04 GB, free: 381.8 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.974e-05/3.295, allocations: 15.8 kB / 1.04 GB, free: 381.8 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0004688/3.296, allocations: 323.7 kB / 1.04 GB, free: 381.5 MB / 0.7917 GB Notification: Performance of sort global known variables: time 2.41e-07/3.296, allocations: 0 / 1.04 GB, free: 381.5 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.007252/3.303, allocations: 1.748 MB / 1.042 GB, free: 380.2 MB / 0.7917 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.01209/3.315, allocations: 2.621 MB / 1.045 GB, free: 378.1 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.001146/3.316, allocations: 282.9 kB / 1.045 GB, free: 377.9 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/3.316, allocations: 256 / 1.045 GB, free: 377.9 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.0004363/3.317, allocations: 145.4 kB / 1.045 GB, free: 377.8 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009275/3.318, allocations: 96.28 kB / 1.045 GB, free: 377.7 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/3.32, allocations: 1.421 MB / 1.047 GB, free: 376.4 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/3.32, allocations: 0.8822 MB / 1.047 GB, free: 375.5 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.000381/3.321, allocations: 67.66 kB / 1.047 GB, free: 375.4 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.806e-05/3.321, allocations: 39.42 kB / 1.048 GB, free: 375.4 MB / 0.7917 GB Notification: Performance of SimCode: time 5.91e-07/3.321, allocations: 0 / 1.048 GB, free: 375.4 MB / 0.7917 GB Notification: Performance of Templates: time 0.08518/3.406, allocations: 51.15 MB / 1.097 GB, free: 324.9 MB / 0.7917 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)