Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7454/0.7454, allocations: 150.8 MB / 166.1 MB, free: 15.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.419e-05/1.421e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1403, allocations: 31.97 MB / 236.8 MB, free: 5.242 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.TestPipePressureLoss): time 1.441/1.581, allocations: 293.5 MB / 0.5179 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03808/1.619, allocations: 36.99 MB / 0.554 GB, free: 8.617 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00017/1.619, allocations: 0 / 0.554 GB, free: 8.617 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002893/1.62, allocations: 79.56 kB / 0.5541 GB, free: 8.539 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/1.62, allocations: 83.36 kB / 0.5541 GB, free: 8.457 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01806/1.638, allocations: 7.311 MB / 0.5613 GB, free: 1.145 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004323/1.639, allocations: 326.4 kB / 0.5616 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/1.639, allocations: 98.11 kB / 0.5617 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/1.639, allocations: 115.4 kB / 0.5618 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/1.639, allocations: 95.45 kB / 0.5619 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.937e-05/1.639, allocations: 8 kB / 0.5619 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02634/1.665, allocations: 17.81 MB / 0.5793 GB, free: 14.68 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.169e-05/1.666, allocations: 39.78 kB / 0.5793 GB, free: 14.64 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/1.666, allocations: 149 kB / 0.5795 GB, free: 14.49 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0156/1.681, allocations: 8.335 MB / 0.5876 GB, free: 6.133 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/1.681, allocations: 0 / 0.5876 GB, free: 6.133 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.633e-06/1.681, allocations: 0 / 0.5876 GB, free: 6.133 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/1.681, allocations: 0 / 0.5876 GB, free: 6.133 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003395/1.685, allocations: 1.388 MB / 0.589 GB, free: 4.695 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/1.685, allocations: 8.031 kB / 0.589 GB, free: 4.688 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.946e-05/1.685, allocations: 31.56 kB / 0.589 GB, free: 4.656 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/1.685, allocations: 234.5 kB / 0.5892 GB, free: 4.387 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/1.685, allocations: 25.27 kB / 0.5893 GB, free: 4.359 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/1.685, allocations: 16 kB / 0.5893 GB, free: 4.344 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/1.686, allocations: 299.3 kB / 0.5896 GB, free: 4.027 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/1.686, allocations: 0 / 0.5896 GB, free: 4.027 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/1.686, allocations: 12 kB / 0.5896 GB, free: 4.016 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/1.686, allocations: 12 kB / 0.5896 GB, free: 4.004 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002259/1.686, allocations: 169 kB / 0.5897 GB, free: 3.84 MB / 478.1 MB 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.03367/1.719, allocations: 18.15 MB / 0.6075 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/1.72, allocations: 130.6 kB / 0.6076 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/1.72, allocations: 88.84 kB / 0.6077 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1437/1.864, allocations: 77.94 MB / 0.6838 GB, free: 8.891 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/1.864, allocations: 30.56 kB / 0.6838 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 3.657e-06/1.864, allocations: 1.219 kB / 0.6838 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0009709/1.865, allocations: 455.4 kB / 0.6842 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/1.865, allocations: 59.34 kB / 0.6843 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/1.865, allocations: 219.1 kB / 0.6845 GB, free: 8.082 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/1.865, allocations: 25.7 kB / 0.6845 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.731e-05/1.865, allocations: 148.5 kB / 0.6847 GB, free: 7.902 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.761e-05/1.865, allocations: 114.3 kB / 0.6848 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.902e-05/1.865, allocations: 29.7 kB / 0.6848 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.92e-05/1.865, allocations: 334.8 kB / 0.6851 GB, free: 7.418 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.843e-05/1.865, allocations: 71.97 kB / 0.6852 GB, free: 7.348 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/1.866, allocations: 116.3 kB / 0.6853 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/1.866, allocations: 204.6 kB / 0.6855 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/1.866, allocations: 0 / 0.6855 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004024/1.866, allocations: 301.6 kB / 0.6858 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/1.866, allocations: 13.34 kB / 0.6858 GB, free: 6.688 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/1.866, allocations: 0 / 0.6858 GB, free: 6.688 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009144/1.867, allocations: 185.8 kB / 0.686 GB, free: 6.504 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.867e-05/1.867, allocations: 15.98 kB / 0.686 GB, free: 6.488 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004787/1.868, allocations: 0.627 MB / 0.6866 GB, free: 5.836 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/1.868, allocations: 31.66 kB / 0.6866 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/1.868, allocations: 4.062 kB / 0.6866 GB, free: 5.801 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (pipePressureLoss.C2.b,pipePressureLoss.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001332/1.868, allocations: 138.8 kB / 0.6868 GB, free: 5.656 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/1.868, allocations: 27.7 kB / 0.6868 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006707/1.869, allocations: 0.6129 MB / 0.6874 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003291/1.869, allocations: 218.3 kB / 0.6876 GB, free: 4.727 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/1.869, allocations: 0 / 0.6876 GB, free: 4.727 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/1.869, allocations: 0 / 0.6876 GB, free: 4.727 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008531/1.87, allocations: 0.7383 MB / 0.6883 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/1.87, allocations: 0 / 0.6883 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-05/1.87, allocations: 12 kB / 0.6883 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004955/1.87, allocations: 149.8 kB / 0.6885 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/1.871, allocations: 8 kB / 0.6885 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004117/1.871, allocations: 0.6627 MB / 0.6891 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/1.871, allocations: 0 / 0.6891 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000389/1.871, allocations: 340.9 kB / 0.6895 GB, free: 2.723 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/1.871, allocations: 139 kB / 0.6896 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.057e-05/1.871, allocations: 0 / 0.6896 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/1.872, allocations: 11.98 kB / 0.6896 GB, free: 2.559 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.218e-05/1.872, allocations: 8.062 kB / 0.6896 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/1.872, allocations: 0 / 0.6896 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000251/1.872, allocations: 237.9 kB / 0.6898 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/1.872, allocations: 0 / 0.6898 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00268/1.875, allocations: 1.187 MB / 0.691 GB, free: 1.133 MB / 0.5762 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.157/2.032, allocations: 1.749 MB / 0.6927 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005862/2.032, allocations: 229.6 kB / 0.6929 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/2.032, allocations: 0.5625 kB / 0.6929 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002068/2.032, allocations: 92.78 kB / 0.693 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008057/2.033, allocations: 117.7 kB / 0.6931 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008094/2.034, allocations: 0.6386 MB / 0.6938 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000185/2.034, allocations: 0.7633 MB / 0.6945 GB, free: 227 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001148/2.034, allocations: 25.77 kB / 0.6945 GB, free: 227 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.385e-05/2.034, allocations: 21.59 kB / 0.6945 GB, free: 227 MB / 0.5762 GB Notification: Performance of SimCode: time 2.8e-07/2.034, allocations: 0 / 0.6945 GB, free: 227 MB / 0.5762 GB Notification: Performance of Templates: time 0.04562/2.08, allocations: 41.9 MB / 0.7355 GB, free: 208.4 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1) Environment - environmentSimulation: