Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.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.Examples.SimpleExamples.TestRefP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP") translateModel(ThermoSysPro.Examples.SimpleExamples.TestRefP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7964/0.7964, allocations: 150.9 MB / 166 MB, free: 14.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002982/0.0002982, allocations: 15.97 kB / 204 MB, free: 10.15 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1546, allocations: 31.33 MB / 235.3 MB, free: 5.414 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.Examples.SimpleExamples.TestRefP): time 1.541/1.696, allocations: 293.4 MB / 0.5163 GB, free: 13.13 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1879/1.884, allocations: 187.6 MB / 0.6995 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000433/1.884, allocations: 4 kB / 0.6995 GB, free: 1.156 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/RefP.mo:15:3-17:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/RefP.mo:18:3-19:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/StaticCentrifugalPump.mo:60:3-62:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/StaticCentrifugalPump.mo:63:3-65:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/LoopBreakers/LoopBreakerQ.mo:6:3-8:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/LoopBreakers/LoopBreakerQ.mo:9:3-10:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/LoopBreakers/LoopBreakerH.mo:7:3-9:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/LoopBreakers/LoopBreakerH.mo:10:3-11:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/RefT.mo:18:3-20:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/RefT.mo:21:3-22:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:49:3-50:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:51:3-53:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004982/1.885, allocations: 105.4 kB / 0.6996 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003217/1.885, allocations: 130.9 kB / 0.6998 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2926/2.178, allocations: 8.647 MB / 0.7082 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006838/2.179, allocations: 0.5315 MB / 0.7087 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/2.179, allocations: 258.3 kB / 0.709 GB, free: 4.211 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002831/2.179, allocations: 217.6 kB / 0.7092 GB, free: 4.211 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002367/2.179, allocations: 229.3 kB / 0.7094 GB, free: 4.211 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.015e-05/2.18, allocations: 30.75 kB / 0.7094 GB, free: 4.211 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02928/2.209, allocations: 20.08 MB / 0.729 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001718/2.209, allocations: 91.97 kB / 0.7291 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000415/2.209, allocations: 236.2 kB / 0.7293 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01974/2.229, allocations: 10.03 MB / 0.7391 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/2.229, allocations: 0 / 0.7391 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of FrontEnd: time 9.62e-07/2.229, allocations: 0 / 0.7391 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.724e-06/2.229, allocations: 0 / 0.7391 GB, free: 1.547 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.004576/2.234, allocations: 1.873 MB / 0.741 GB, free: 360 kB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/2.234, allocations: 10.19 kB / 0.741 GB, free: 360 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.837e-05/2.234, allocations: 56.41 kB / 0.741 GB, free: 332 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/2.234, allocations: 313.9 kB / 0.7413 GB, free: 64 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/2.234, allocations: 32.91 kB / 0.7414 GB, free: 64 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.426e-05/2.234, allocations: 43.84 kB / 0.7414 GB, free: 64 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000731/2.235, allocations: 0.5253 MB / 0.7419 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/2.235, allocations: 5.281 kB / 0.7419 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/2.235, allocations: 21.38 kB / 0.7419 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/2.235, allocations: 14.11 kB / 0.742 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005365/2.236, allocations: 332.9 kB / 0.7423 GB, free: 15.79 MB / 0.5919 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.01906/2.255, allocations: 11.92 MB / 0.7539 GB, free: 6.402 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/2.256, allocations: 313.8 kB / 0.7542 GB, free: 6.336 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002286/2.256, allocations: 143.8 kB / 0.7544 GB, free: 6.312 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.218/2.474, allocations: 117.3 MB / 0.8689 GB, free: 11.52 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/2.474, allocations: 38.55 kB / 0.8689 GB, free: 11.47 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=43): time 2.395e-06/2.474, allocations: 0 / 0.8689 GB, free: 11.47 MB / 0.7169 GB Notification: Performance of matching and sorting (n=43): time 0.007477/2.482, allocations: 1.494 MB / 0.8704 GB, free: 10.12 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.479e-05/2.482, allocations: 59.52 kB / 0.8705 GB, free: 10.05 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003683/2.482, allocations: 319 kB / 0.8708 GB, free: 9.789 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/2.482, allocations: 29.45 kB / 0.8708 GB, free: 9.758 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/2.482, allocations: 233.6 kB / 0.871 GB, free: 9.57 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/2.482, allocations: 142.5 kB / 0.8711 GB, free: 9.449 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/2.482, allocations: 88 kB / 0.8712 GB, free: 9.387 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001258/2.483, allocations: 352 kB / 0.8716 GB, free: 9.051 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002379/2.483, allocations: 114.3 kB / 0.8717 GB, free: 8.98 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002932/2.483, allocations: 223.4 kB / 0.8719 GB, free: 8.777 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000573/2.484, allocations: 367.8 kB / 0.8722 GB, free: 8.508 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/2.484, allocations: 0 / 0.8722 GB, free: 8.508 MB / 0.7169 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002336/2.486, allocations: 0.6779 MB / 0.8729 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/2.486, allocations: 9.406 kB / 0.8729 GB, free: 8 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/2.486, allocations: 11.39 kB / 0.8729 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001744/2.488, allocations: 445.5 kB / 0.8733 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/2.488, allocations: 26.8 kB / 0.8734 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/2.489, allocations: 0.8437 MB / 0.8742 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003526/2.49, allocations: 46.64 kB / 0.8742 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/2.49, allocations: 15.81 kB / 0.8743 GB, free: 6.797 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,refT.C2.b,refT.C1.a,loopBreakerH.C2.b,loopBreakerH.C1.a,loopBreakerQ.C2.b,loopBreakerQ.C1.a,pump.C2.b,pump.C1.a,refP.C2.b,refP.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(6,33.3%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems 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 {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002962/2.49, allocations: 168.9 kB / 0.8744 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.534e-05/2.49, allocations: 39.47 kB / 0.8745 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001274/2.491, allocations: 0.7487 MB / 0.8752 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001036/2.492, allocations: 0.5935 MB / 0.8758 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/2.492, allocations: 0 / 0.8758 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/2.492, allocations: 4 kB / 0.8758 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002209/2.495, allocations: 1.407 MB / 0.8771 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/2.495, allocations: 0 / 0.8771 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/2.495, allocations: 38.11 kB / 0.8772 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/2.496, allocations: 449.7 kB / 0.8776 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.778e-05/2.496, allocations: 11.36 kB / 0.8776 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008342/2.497, allocations: 0.8948 MB / 0.8785 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/2.497, allocations: 0 / 0.8785 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/2.498, allocations: 0.7164 MB / 0.8792 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/2.498, allocations: 154 kB / 0.8793 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/2.498, allocations: 7.375 kB / 0.8793 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/2.499, allocations: 14.98 kB / 0.8794 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.979e-05/2.499, allocations: 35.5 kB / 0.8794 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/2.499, allocations: 19.42 kB / 0.8794 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001849/2.499, allocations: 213.7 kB / 0.8796 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.533e-06/2.499, allocations: 4 kB / 0.8796 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003937/2.503, allocations: 1.524 MB / 0.8811 GB, free: 1.094 MB / 0.7169 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 (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(6,33.3%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006755/2.51, allocations: 2.346 MB / 0.8834 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001017/2.511, allocations: 0.5745 MB / 0.884 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/2.511, allocations: 0 / 0.884 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005183/2.511, allocations: 342.8 kB / 0.8843 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007743/2.512, allocations: 140.1 kB / 0.8844 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00135/2.513, allocations: 1.099 MB / 0.8855 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/2.514, allocations: 0.8595 MB / 0.8863 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001404/2.514, allocations: 40.47 kB / 0.8864 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.742e-05/2.514, allocations: 27.44 kB / 0.8864 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/2.514, allocations: 0 / 0.8864 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of Templates: time 0.06249/2.576, allocations: 50.77 MB / 0.936 GB, free: 9.691 MB / 0.7794 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe 2>&1)