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.9151/0.9151, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002482/0.0002482, allocations: 15.98 kB / 204.7 MB, free: 6.164 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1668/0.167, allocations: 31.33 MB / 236 MB, free: 3.867 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.Examples.SimpleExamples.TestRefP): time 1.635/1.802, allocations: 292.7 MB / 0.5163 GB, free: 9.312 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.5864/2.388, allocations: 187.6 MB / 0.6995 GB, free: 1.633 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004787/2.389, allocations: 2.844 kB / 0.6995 GB, free: 1.633 MB / 0.5573 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.0005191/2.389, allocations: 98.17 kB / 0.6996 GB, free: 1.633 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003517/2.39, allocations: 124.7 kB / 0.6997 GB, free: 1.633 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02213/2.412, allocations: 8.674 MB / 0.7082 GB, free: 1.453 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0007528/2.413, allocations: 0.5417 MB / 0.7087 GB, free: 1.449 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003299/2.413, allocations: 261.9 kB / 0.7089 GB, free: 1.418 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002874/2.413, allocations: 216.4 kB / 0.7092 GB, free: 1.414 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/2.414, allocations: 228.3 kB / 0.7094 GB, free: 1.414 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.734e-05/2.414, allocations: 31.06 kB / 0.7094 GB, free: 1.414 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03084/2.444, allocations: 20.08 MB / 0.729 GB, free: 13.78 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001845/2.445, allocations: 90.39 kB / 0.7291 GB, free: 13.76 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0003206/2.445, allocations: 237.9 kB / 0.7293 GB, free: 13.75 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.02094/2.466, allocations: 10.04 MB / 0.7391 GB, free: 9.688 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/2.466, allocations: 3.984 kB / 0.7391 GB, free: 9.684 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.543e-06/2.466, allocations: 0 / 0.7391 GB, free: 9.684 MB / 0.573 GB Notification: Performance of Transformations before backend: time 7.894e-06/2.466, allocations: 0 / 0.7391 GB, free: 9.684 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.004677/2.471, allocations: 1.873 MB / 0.741 GB, free: 8.484 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/2.471, allocations: 7.344 kB / 0.741 GB, free: 8.484 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.606e-05/2.471, allocations: 59.16 kB / 0.741 GB, free: 8.453 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003058/2.471, allocations: 307.1 kB / 0.7413 GB, free: 8.18 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/2.471, allocations: 38.62 kB / 0.7414 GB, free: 8.18 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.836e-05/2.471, allocations: 42.66 kB / 0.7414 GB, free: 8.176 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006883/2.472, allocations: 0.5206 MB / 0.7419 GB, free: 7.945 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/2.472, allocations: 5.031 kB / 0.7419 GB, free: 7.941 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/2.472, allocations: 18.44 kB / 0.7419 GB, free: 7.941 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.862e-05/2.472, allocations: 19.3 kB / 0.7419 GB, free: 7.938 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005446/2.473, allocations: 335.8 kB / 0.7423 GB, free: 7.883 MB / 0.573 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.02117/2.494, allocations: 11.92 MB / 0.7539 GB, free: 14.43 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/2.495, allocations: 322.5 kB / 0.7542 GB, free: 14.36 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/2.495, allocations: 139 kB / 0.7543 GB, free: 14.34 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2411/2.736, allocations: 117.3 MB / 0.8689 GB, free: 15.03 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/2.736, allocations: 40.81 kB / 0.8689 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=43): time 2.194e-06/2.736, allocations: 0 / 0.8689 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of matching and sorting (n=43): time 0.007144/2.743, allocations: 1.5 MB / 0.8704 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/2.743, allocations: 51.41 kB / 0.8704 GB, free: 13.55 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003316/2.744, allocations: 314.3 kB / 0.8707 GB, free: 13.3 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/2.744, allocations: 34.09 kB / 0.8708 GB, free: 13.27 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/2.744, allocations: 232.1 kB / 0.871 GB, free: 13.08 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 9.421e-05/2.744, allocations: 145.4 kB / 0.8711 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/2.744, allocations: 88.89 kB / 0.8712 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001048/2.744, allocations: 340.3 kB / 0.8715 GB, free: 12.56 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/2.745, allocations: 125.3 kB / 0.8717 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002953/2.745, allocations: 218.3 kB / 0.8719 GB, free: 12.28 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005304/2.745, allocations: 366.4 kB / 0.8722 GB, free: 12 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/2.746, allocations: 0 / 0.8722 GB, free: 12 MB / 0.7136 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002002/2.748, allocations: 0.6768 MB / 0.8729 GB, free: 11.47 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/2.748, allocations: 13.14 kB / 0.8729 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/2.748, allocations: 4 kB / 0.8729 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001526/2.749, allocations: 448.1 kB / 0.8733 GB, free: 11.07 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.322e-05/2.749, allocations: 27.42 kB / 0.8734 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008431/2.75, allocations: 0.8425 MB / 0.8742 GB, free: 10.28 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002625/2.75, allocations: 55.48 kB / 0.8742 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/2.75, allocations: 12 kB / 0.8742 GB, free: 10.21 MB / 0.7136 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.0001743/2.751, allocations: 166.7 kB / 0.8744 GB, free: 10.04 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.465e-05/2.751, allocations: 39.47 kB / 0.8744 GB, free: 10 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001201/2.752, allocations: 0.7439 MB / 0.8752 GB, free: 9.242 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00105/2.753, allocations: 0.5943 MB / 0.8757 GB, free: 8.633 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/2.753, allocations: 1.203 kB / 0.8757 GB, free: 8.633 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/2.753, allocations: 4 kB / 0.8757 GB, free: 8.629 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/2.755, allocations: 1.415 MB / 0.8771 GB, free: 7.164 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/2.755, allocations: 0 / 0.8771 GB, free: 7.164 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/2.755, allocations: 43.92 kB / 0.8772 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/2.757, allocations: 446.7 kB / 0.8776 GB, free: 6.68 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.92e-05/2.757, allocations: 12 kB / 0.8776 GB, free: 6.668 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008787/2.757, allocations: 0.8862 MB / 0.8785 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/2.757, allocations: 0 / 0.8785 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/2.76, allocations: 1.6 MB / 0.88 GB, free: 4.098 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001933/2.76, allocations: 156.4 kB / 0.8802 GB, free: 3.926 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/2.76, allocations: 4 kB / 0.8802 GB, free: 3.922 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/2.76, allocations: 23.94 kB / 0.8802 GB, free: 3.898 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/2.76, allocations: 47.8 kB / 0.8803 GB, free: 3.852 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/2.76, allocations: 12 kB / 0.8803 GB, free: 3.84 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0002383/2.761, allocations: 211.1 kB / 0.8805 GB, free: 3.633 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/2.761, allocations: 0 / 0.8805 GB, free: 3.633 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004825/2.765, allocations: 1.577 MB / 0.882 GB, free: 2.055 MB / 0.7136 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.008139/2.774, allocations: 2.353 MB / 0.8843 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001246/2.775, allocations: 0.5814 MB / 0.8849 GB, free: 15.37 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/2.775, allocations: 4.25 kB / 0.8849 GB, free: 15.37 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0005672/2.775, allocations: 340.1 kB / 0.8852 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008971/2.776, allocations: 129.3 kB / 0.8853 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00203/2.778, allocations: 1.42 MB / 0.8867 GB, free: 13.44 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004761/2.779, allocations: 0.8674 MB / 0.8876 GB, free: 12.55 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001973/2.779, allocations: 39.27 kB / 0.8876 GB, free: 12.5 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.509e-05/2.779, allocations: 27.44 kB / 0.8876 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of SimCode: time 6.11e-07/2.779, allocations: 5.203 kB / 0.8876 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of Templates: time 0.06433/2.843, allocations: 51.1 MB / 0.9375 GB, free: 9.453 MB / 0.7761 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)