Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.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.PressureLoss.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7306/0.7306, allocations: 150.8 MB / 166.1 MB, free: 15.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.117e-05/1.121e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1314, allocations: 31.97 MB / 236.8 MB, free: 5.211 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe): time 1.416/1.547, allocations: 294.7 MB / 0.519 GB, free: 12.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1632/1.71, allocations: 181.5 MB / 0.6962 GB, free: 6.48 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002777/1.711, allocations: 4 kB / 0.6963 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000331/1.711, allocations: 111.3 kB / 0.6964 GB, free: 6.367 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003951/1.711, allocations: 162.7 kB / 0.6965 GB, free: 6.207 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2756/1.987, allocations: 8.018 MB / 0.7043 GB, free: 7.375 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009564/1.988, allocations: 0.8785 MB / 0.7052 GB, free: 7.375 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003063/1.988, allocations: 283.5 kB / 0.7055 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003621/1.989, allocations: 330 kB / 0.7058 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003579/1.989, allocations: 361.4 kB / 0.7061 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.497e-05/1.989, allocations: 34.75 kB / 0.7062 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02345/2.012, allocations: 17.32 MB / 0.7231 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002295/2.013, allocations: 129.1 kB / 0.7232 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003938/2.013, allocations: 347.2 kB / 0.7235 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01588/2.029, allocations: 9.211 MB / 0.7325 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/2.029, allocations: 2.938 kB / 0.7325 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.693e-06/2.029, allocations: 1.75 kB / 0.7325 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.766e-06/2.029, allocations: 0 / 0.7325 GB, free: 6.906 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.006661/2.036, allocations: 2.235 MB / 0.7347 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/2.036, allocations: 11.34 kB / 0.7347 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/2.036, allocations: 70.42 kB / 0.7348 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003149/2.036, allocations: 362.9 kB / 0.7351 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.12e-05/2.036, allocations: 101.4 kB / 0.7352 GB, free: 5.211 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.037e-05/2.036, allocations: 51.34 kB / 0.7353 GB, free: 5.211 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/2.038, allocations: 0.9206 MB / 0.7362 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/2.038, allocations: 6.422 kB / 0.7362 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/2.038, allocations: 21.28 kB / 0.7362 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/2.038, allocations: 19.95 kB / 0.7362 GB, free: 4.824 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002531/2.041, allocations: 1.022 MB / 0.7372 GB, free: 4.578 MB / 0.5762 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.002944/2.044, allocations: 3.926 MB / 0.7411 GB, free: 17.42 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002203/2.046, allocations: 0.7741 MB / 0.7418 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/2.047, allocations: 452.6 kB / 0.7422 GB, free: 17.12 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.209/2.256, allocations: 118.3 MB / 0.8578 GB, free: 11.3 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/2.256, allocations: 45.72 kB / 0.8578 GB, free: 11.25 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=71): time 2.194e-06/2.256, allocations: 0 / 0.8578 GB, free: 11.25 MB / 0.7012 GB Notification: Performance of matching and sorting (n=71): time 0.004456/2.261, allocations: 1.591 MB / 0.8594 GB, free: 9.879 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/2.261, allocations: 55.41 kB / 0.8594 GB, free: 9.812 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/2.261, allocations: 401.5 kB / 0.8598 GB, free: 9.488 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/2.261, allocations: 37.08 kB / 0.8598 GB, free: 9.453 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/2.261, allocations: 286.6 kB / 0.8601 GB, free: 9.223 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/2.261, allocations: 248.3 kB / 0.8603 GB, free: 9.016 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.948e-05/2.262, allocations: 79.3 kB / 0.8604 GB, free: 8.957 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001076/2.262, allocations: 370.4 kB / 0.8608 GB, free: 8.613 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/2.263, allocations: 426.1 kB / 0.8612 GB, free: 8.285 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/2.264, allocations: 0.6821 MB / 0.8618 GB, free: 7.602 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002662/2.267, allocations: 1.129 MB / 0.8629 GB, free: 6.605 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/2.267, allocations: 0 / 0.8629 GB, free: 6.605 MB / 0.7012 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003463/2.27, allocations: 1.368 MB / 0.8643 GB, free: 5.551 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/2.27, allocations: 12 kB / 0.8643 GB, free: 5.539 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/2.271, allocations: 8 kB / 0.8643 GB, free: 5.531 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002525/2.273, allocations: 0.6786 MB / 0.865 GB, free: 4.898 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/2.275, allocations: 339.8 kB / 0.8653 GB, free: 4.586 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/2.276, allocations: 1.971 MB / 0.8672 GB, free: 2.723 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009125/2.277, allocations: 178.1 kB / 0.8674 GB, free: 2.559 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.749e-05/2.277, allocations: 43.34 kB / 0.8674 GB, free: 2.523 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 16 (lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,tank2.Cs1.b,tank2.Ce2.a,tank2.Cs2.b,tank2.Ce1.a,tank1.Cs1.b,tank1.Ce2.a,tank1.Cs2.b,tank1.Ce1.a,tank2.Cs2.a,tank2.Cs1.a,tank2.Ce1.b,tank1.Cs1.a,tank1.Ce2.b,tank1.Ce1.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(3,9), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002552/2.277, allocations: 196.7 kB / 0.8676 GB, free: 2.367 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.359e-05/2.278, allocations: 55.34 kB / 0.8677 GB, free: 2.312 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003383/2.281, allocations: 1.491 MB / 0.8691 GB, free: 1.215 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002936/2.284, allocations: 1.199 MB / 0.8703 GB, free: 276 kB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/2.284, allocations: 8 kB / 0.8703 GB, free: 268 kB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/2.284, allocations: 3.984 kB / 0.8703 GB, free: 264 kB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004847/2.289, allocations: 2.396 MB / 0.8726 GB, free: 14.37 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/2.289, allocations: 0 / 0.8726 GB, free: 14.37 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001819/2.291, allocations: 393.3 kB / 0.873 GB, free: 14 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003057/2.291, allocations: 206.8 kB / 0.8732 GB, free: 13.82 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.063e-05/2.291, allocations: 23.17 kB / 0.8732 GB, free: 13.81 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007026/2.292, allocations: 1.22 MB / 0.8744 GB, free: 12.63 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/2.292, allocations: 0 / 0.8744 GB, free: 12.63 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004498/2.296, allocations: 1.944 MB / 0.8763 GB, free: 11.11 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000289/2.297, allocations: 205.7 kB / 0.8765 GB, free: 10.92 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.647e-05/2.297, allocations: 15.06 kB / 0.8765 GB, free: 10.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007945/2.297, allocations: 126.9 kB / 0.8767 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/2.298, allocations: 59.97 kB / 0.8767 GB, free: 10.75 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.402e-05/2.298, allocations: 27.36 kB / 0.8767 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002496/2.298, allocations: 259.1 kB / 0.877 GB, free: 10.53 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.52e-07/2.298, allocations: 0 / 0.877 GB, free: 10.53 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00397/2.302, allocations: 1.469 MB / 0.8784 GB, free: 9.16 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tank1.z,tank1.h,tank2.z,tank2.h,lumpedStraightPipe.Q) * 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 (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005568/2.307, allocations: 2.162 MB / 0.8805 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003506/2.311, allocations: 1.307 MB / 0.8818 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/2.311, allocations: 4.188 kB / 0.8818 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001576/2.313, allocations: 0.6268 MB / 0.8824 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/2.314, allocations: 217.4 kB / 0.8826 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002729/2.316, allocations: 2.027 MB / 0.8846 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/2.317, allocations: 0.9274 MB / 0.8855 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0004515/2.317, allocations: 96.84 kB / 0.8856 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/2.318, allocations: 67.28 kB / 0.8857 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of SimCode: time 3.51e-07/2.318, allocations: 0 / 0.8857 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of Templates: time 0.0609/2.378, allocations: 51.82 MB / 0.9363 GB, free: 15.1 MB / 0.7794 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe 2>&1) Environment - environmentSimulation: