Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestTank.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.Book.SimpleExamples.Volume.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestTank") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8142/0.8142, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002525/0.0002527, allocations: 11.98 kB / 204.7 MB, free: 6.156 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1633, allocations: 31.33 MB / 236 MB, free: 3.887 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.Book.SimpleExamples.Volume.TestTank): time 1.586/1.75, allocations: 294.1 MB / 0.5177 GB, free: 7.883 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4911/2.241, allocations: 188.4 MB / 0.7016 GB, free: 1.633 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006048/2.242, allocations: 5.406 kB / 0.7016 GB, free: 1.633 MB / 0.5573 GB [/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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43: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/ControlValve.mo:48:3-50:38: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/SourceP.mo:30:3-31:45:writable] Warning: Connector C 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/SinkP.mo:33:3-34:47:writable] Warning: Connector C 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/Volumes/Tank.mo:71:3-72:53:writable] Warning: Connector Ce1 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/Volumes/Tank.mo:73:3-74:53:writable] Warning: Connector Cs2 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/Volumes/Tank.mo:78:3-79:55:writable] Warning: Connector Ce2 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/Volumes/Tank.mo:80:3-81:51:writable] Warning: Connector Cs1 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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C 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.0008631/2.243, allocations: 158.6 kB / 0.7018 GB, free: 1.629 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0008369/2.243, allocations: 269.2 kB / 0.702 GB, free: 1.621 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02854/2.272, allocations: 8.92 MB / 0.7108 GB, free: 1.387 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.00262/2.275, allocations: 1.139 MB / 0.7119 GB, free: 1.379 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001069/2.276, allocations: 408.8 kB / 0.7123 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/2.277, allocations: 431.5 kB / 0.7127 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001011/2.278, allocations: 441.1 kB / 0.7131 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.000236/2.278, allocations: 47.28 kB / 0.7131 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03795/2.316, allocations: 20.12 MB / 0.7328 GB, free: 13.61 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003833/2.317, allocations: 156.7 kB / 0.7329 GB, free: 13.58 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.000848/2.317, allocations: 439.1 kB / 0.7334 GB, free: 13.55 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.02485/2.342, allocations: 10.44 MB / 0.7435 GB, free: 9.668 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/2.342, allocations: 2.438 kB / 0.7436 GB, free: 9.668 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.333e-06/2.342, allocations: 0 / 0.7436 GB, free: 9.668 MB / 0.573 GB Notification: Performance of Transformations before backend: time 5.028e-05/2.342, allocations: 0 / 0.7436 GB, free: 9.668 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.008464/2.351, allocations: 2.428 MB / 0.7459 GB, free: 8.195 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/2.351, allocations: 9.938 kB / 0.7459 GB, free: 8.195 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/2.351, allocations: 96.16 kB / 0.746 GB, free: 8.145 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005921/2.352, allocations: 435.6 kB / 0.7464 GB, free: 7.82 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/2.352, allocations: 85.48 kB / 0.7465 GB, free: 7.785 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/2.352, allocations: 67.06 kB / 0.7466 GB, free: 7.781 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00189/2.354, allocations: 0.9863 MB / 0.7475 GB, free: 7.379 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/2.354, allocations: 4.25 kB / 0.7476 GB, free: 7.379 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.624e-05/2.354, allocations: 28.03 kB / 0.7476 GB, free: 7.379 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/2.354, allocations: 32.75 kB / 0.7476 GB, free: 7.371 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002085/2.356, allocations: 0.8297 MB / 0.7484 GB, free: 7.211 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.05848/2.415, allocations: 29.75 MB / 0.7775 GB, free: 9.883 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002473/2.417, allocations: 0.7855 MB / 0.7782 GB, free: 9.32 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009515/2.418, allocations: 432.3 kB / 0.7787 GB, free: 9.059 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3054/2.724, allocations: 150.5 MB / 0.9256 GB, free: 2.262 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/2.724, allocations: 35 kB / 0.9256 GB, free: 2.215 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=110): time 2.474e-06/2.724, allocations: 0 / 0.9256 GB, free: 2.215 MB / 0.7605 GB Notification: Performance of matching and sorting (n=110): time 0.00765/2.731, allocations: 2.361 MB / 0.9279 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/2.731, allocations: 59.78 kB / 0.928 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005655/2.732, allocations: 0.4987 MB / 0.9285 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.13e-05/2.732, allocations: 33.7 kB / 0.9285 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/2.732, allocations: 328.4 kB / 0.9288 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002568/2.732, allocations: 368.8 kB / 0.9292 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002293/2.733, allocations: 158.2 kB / 0.9293 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001684/2.733, allocations: 382.8 kB / 0.9297 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/2.734, allocations: 361.7 kB / 0.93 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/2.735, allocations: 0.528 MB / 0.9305 GB, free: 13 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002153/2.737, allocations: 0.9309 MB / 0.9314 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/2.737, allocations: 1.203 kB / 0.9314 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003154/2.74, allocations: 1.28 MB / 0.9327 GB, free: 10.75 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/2.74, allocations: 8 kB / 0.9327 GB, free: 10.74 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/2.74, allocations: 4 kB / 0.9327 GB, free: 10.74 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004367/2.745, allocations: 0.9939 MB / 0.9337 GB, free: 9.738 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008207/2.746, allocations: 155.4 kB / 0.9338 GB, free: 9.594 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002398/2.748, allocations: 2.694 MB / 0.9365 GB, free: 6.809 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008522/2.749, allocations: 135.8 kB / 0.9366 GB, free: 6.676 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.047e-05/2.749, allocations: 35.72 kB / 0.9366 GB, free: 6.645 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 14 (PuitsP2.C.a,PerteDP2.C2.b,PerteDP2.C1.a,Tank1.Cs1.b,Tank1.Ce2.a,Tank1.Cs2.b,Tank1.Ce1.a,PuitsP1.C.a,SourceP1.C.b,VanneReglante1.C2.b,VanneReglante1.C1.a,PerteDP1.C2.b,PerteDP1.C1.a,Tank1.Ce2.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(2,7), (2,6), (2,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003145/2.749, allocations: 210.8 kB / 0.9368 GB, free: 6.434 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/2.749, allocations: 70.97 kB / 0.9369 GB, free: 6.363 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004523/2.754, allocations: 2.937 MB / 0.9398 GB, free: 3.32 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003101/2.757, allocations: 1.285 MB / 0.941 GB, free: 2.02 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/2.757, allocations: 0 / 0.941 GB, free: 2.02 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/2.757, allocations: 3.984 kB / 0.941 GB, free: 2.016 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005538/2.763, allocations: 2.812 MB / 0.9438 GB, free: 15.18 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/2.763, allocations: 0 / 0.9438 GB, free: 15.18 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009431/2.764, allocations: 186.6 kB / 0.9439 GB, free: 15.01 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00323/2.767, allocations: 0.9008 MB / 0.9448 GB, free: 14.1 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.637e-05/2.767, allocations: 19.98 kB / 0.9448 GB, free: 14.08 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002384/2.769, allocations: 2.792 MB / 0.9476 GB, free: 11.2 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/2.769, allocations: 0 / 0.9476 GB, free: 11.2 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.24/3.009, allocations: 25.14 MB / 0.9721 GB, free: 430.2 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003625/3.01, allocations: 221.4 kB / 0.9723 GB, free: 430 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/3.01, allocations: 33.06 kB / 0.9724 GB, free: 430 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000714/3.011, allocations: 73.92 kB / 0.9724 GB, free: 430 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/3.011, allocations: 64.94 kB / 0.9725 GB, free: 430 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.932e-05/3.011, allocations: 28.73 kB / 0.9725 GB, free: 430 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0005229/3.011, allocations: 462.9 kB / 0.973 GB, free: 429.9 MB / 0.7917 GB Notification: Performance of sort global known variables: time 2.91e-07/3.011, allocations: 2.438 kB / 0.973 GB, free: 429.9 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.008643/3.02, allocations: 2.815 MB / 0.9757 GB, free: 429.8 MB / 0.7917 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Tank1.z,Tank1.h) * 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 (64): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(2,8), (2,9), (2,9), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01359/3.034, allocations: 3.341 MB / 0.979 GB, free: 429.5 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.003773/3.037, allocations: 1.261 MB / 0.9802 GB, free: 429.4 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/3.037, allocations: 0 / 0.9802 GB, free: 429.4 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.001946/3.039, allocations: 0.6531 MB / 0.9809 GB, free: 429.4 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/3.042, allocations: 339.9 kB / 0.9812 GB, free: 429.4 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005432/3.047, allocations: 3.601 MB / 0.9847 GB, free: 427.5 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006292/3.048, allocations: 1.09 MB / 0.9858 GB, free: 426.8 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0006307/3.048, allocations: 108.2 kB / 0.9859 GB, free: 426.8 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002542/3.049, allocations: 67.84 kB / 0.9859 GB, free: 426.8 MB / 0.7917 GB Notification: Performance of SimCode: time 6.41e-07/3.049, allocations: 2.844 kB / 0.9859 GB, free: 426.8 MB / 0.7917 GB Notification: Performance of Templates: time 0.09907/3.148, allocations: 89.41 MB / 1.073 GB, free: 355.5 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestTank.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestTank.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestTank.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestTank.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestTank.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestTank.pipe 2>&1)