Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8087/0.8087, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002327/0.0002328, allocations: 11.98 kB / 204.7 MB, free: 6.168 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.1668, allocations: 31.33 MB / 236 MB, free: 3.898 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.TestPipePressureLoss): time 1.853/2.019, allocations: 292 MB / 0.5156 GB, free: 10.03 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04169/2.061, allocations: 37.55 MB / 0.5523 GB, free: 4.613 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003006/2.062, allocations: 0 / 0.5523 GB, free: 4.613 MB / 442.7 MB [/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/PressureLosses/PipePressureLoss.mo:35:3-37: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/PipePressureLoss.mo:38:3-40: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.0004238/2.062, allocations: 81.72 kB / 0.5524 GB, free: 4.535 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001961/2.062, allocations: 87.3 kB / 0.5525 GB, free: 4.449 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01963/2.082, allocations: 7.157 MB / 0.5594 GB, free: 13.29 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005212/2.082, allocations: 326.4 kB / 0.5598 GB, free: 12.97 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002118/2.083, allocations: 113 kB / 0.5599 GB, free: 12.86 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002114/2.083, allocations: 131.3 kB / 0.56 GB, free: 12.73 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001397/2.083, allocations: 111.4 kB / 0.5601 GB, free: 12.62 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/2.083, allocations: 12 kB / 0.5601 GB, free: 12.61 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02913/2.112, allocations: 17.73 MB / 0.5774 GB, free: 10.86 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 8.006e-05/2.112, allocations: 43.78 kB / 0.5775 GB, free: 10.82 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002125/2.112, allocations: 127.3 kB / 0.5776 GB, free: 10.7 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01838/2.131, allocations: 8.429 MB / 0.5858 GB, free: 2.246 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/2.131, allocations: 8 kB / 0.5858 GB, free: 2.238 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.302e-06/2.131, allocations: 0 / 0.5858 GB, free: 2.238 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/2.131, allocations: 4 kB / 0.5858 GB, free: 2.234 MB / 474.7 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.003321/2.134, allocations: 1.431 MB / 0.5872 GB, free: 0.75 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/2.134, allocations: 8.031 kB / 0.5872 GB, free: 0.7422 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.611e-05/2.134, allocations: 31.56 kB / 0.5873 GB, free: 0.7109 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002051/2.135, allocations: 231.9 kB / 0.5875 GB, free: 456 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/2.135, allocations: 16.44 kB / 0.5875 GB, free: 440 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.378e-05/2.135, allocations: 16 kB / 0.5875 GB, free: 424 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003827/2.135, allocations: 307.3 kB / 0.5878 GB, free: 92 kB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/2.135, allocations: 0 / 0.5878 GB, free: 92 kB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/2.135, allocations: 8 kB / 0.5878 GB, free: 84 kB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/2.135, allocations: 12 kB / 0.5878 GB, free: 72 kB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/2.135, allocations: 173.1 kB / 0.588 GB, free: 15.9 MB / 490.7 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.03739/2.173, allocations: 18.01 MB / 0.6056 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003038/2.173, allocations: 134.5 kB / 0.6057 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/2.173, allocations: 88.84 kB / 0.6058 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1553/2.328, allocations: 77.27 MB / 0.6813 GB, free: 5.738 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/2.329, allocations: 34.56 kB / 0.6813 GB, free: 5.695 MB / 0.573 GB Notification: Performance of pre-optimization done (n=34): time 2.234e-06/2.329, allocations: 0 / 0.6813 GB, free: 5.695 MB / 0.573 GB Notification: Performance of matching and sorting (n=34): time 0.0009836/2.33, allocations: 451.3 kB / 0.6817 GB, free: 5.227 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/2.33, allocations: 51.41 kB / 0.6818 GB, free: 5.164 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002223/2.33, allocations: 219.1 kB / 0.682 GB, free: 4.941 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/2.33, allocations: 25.7 kB / 0.682 GB, free: 4.91 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 8.782e-05/2.33, allocations: 144.5 kB / 0.6821 GB, free: 4.766 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 6.366e-05/2.33, allocations: 118.3 kB / 0.6822 GB, free: 4.648 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-05/2.33, allocations: 45.7 kB / 0.6823 GB, free: 4.598 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001127/2.33, allocations: 334.8 kB / 0.6826 GB, free: 4.262 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/2.33, allocations: 75.97 kB / 0.6827 GB, free: 4.188 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/2.33, allocations: 112.2 kB / 0.6828 GB, free: 4.062 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002401/2.331, allocations: 212.6 kB / 0.683 GB, free: 3.84 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/2.331, allocations: 3.938 kB / 0.683 GB, free: 3.836 MB / 0.573 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003925/2.331, allocations: 293.6 kB / 0.6833 GB, free: 3.539 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/2.331, allocations: 12.06 kB / 0.6833 GB, free: 3.527 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/2.331, allocations: 7.938 kB / 0.6833 GB, free: 3.52 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008631/2.332, allocations: 152.7 kB / 0.6834 GB, free: 3.367 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.925e-05/2.332, allocations: 15.98 kB / 0.6835 GB, free: 3.352 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005022/2.333, allocations: 0.6347 MB / 0.6841 GB, free: 2.691 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/2.333, allocations: 27.66 kB / 0.6841 GB, free: 2.664 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/2.333, allocations: 8 kB / 0.6841 GB, free: 2.656 MB / 0.573 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.0001218/2.333, allocations: 133.8 kB / 0.6842 GB, free: 2.516 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.387e-05/2.333, allocations: 27.77 kB / 0.6843 GB, free: 2.488 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007231/2.334, allocations: 0.5913 MB / 0.6848 GB, free: 1.824 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003559/2.334, allocations: 222.4 kB / 0.6851 GB, free: 1.598 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/2.334, allocations: 4 kB / 0.6851 GB, free: 1.594 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/2.334, allocations: 0 / 0.6851 GB, free: 1.594 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009175/2.335, allocations: 0.7344 MB / 0.6858 GB, free: 0.8008 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/2.335, allocations: 0 / 0.6858 GB, free: 0.8008 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.521e-05/2.335, allocations: 15.94 kB / 0.6858 GB, free: 0.7852 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000484/2.336, allocations: 136.7 kB / 0.6859 GB, free: 0.6484 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/2.336, allocations: 4 kB / 0.6859 GB, free: 0.6445 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.166/2.502, allocations: 0.6505 MB / 0.6866 GB, free: 222.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/2.502, allocations: 2.984 kB / 0.6866 GB, free: 222.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009979/2.503, allocations: 1.044 MB / 0.6876 GB, free: 221.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.927e-05/2.503, allocations: 104.4 kB / 0.6877 GB, free: 221.4 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.924e-05/2.503, allocations: 14.17 kB / 0.6877 GB, free: 221.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/2.503, allocations: 8.891 kB / 0.6877 GB, free: 221.4 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/2.503, allocations: 9.094 kB / 0.6877 GB, free: 221.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/2.503, allocations: 4.938 kB / 0.6877 GB, free: 221.4 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.000195/2.503, allocations: 241.7 kB / 0.6879 GB, free: 221.4 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.41e-07/2.503, allocations: 0.75 kB / 0.6879 GB, free: 221.4 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003295/2.506, allocations: 1.226 MB / 0.6891 GB, free: 221.3 MB / 0.573 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.004615/2.511, allocations: 1.782 MB / 0.6909 GB, free: 221.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.000503/2.512, allocations: 232.3 kB / 0.6911 GB, free: 221.2 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/2.512, allocations: 0 / 0.6911 GB, free: 221.2 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001999/2.512, allocations: 91.28 kB / 0.6912 GB, free: 221.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007796/2.513, allocations: 120.9 kB / 0.6913 GB, free: 221.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008849/2.513, allocations: 0.7829 MB / 0.6921 GB, free: 220.7 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/2.514, allocations: 0.7782 MB / 0.6928 GB, free: 220 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 9.633e-05/2.514, allocations: 20.84 kB / 0.6929 GB, free: 220 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.608e-05/2.514, allocations: 21.38 kB / 0.6929 GB, free: 220 MB / 0.573 GB Notification: Performance of SimCode: time 3.61e-07/2.514, allocations: 0.5 kB / 0.6929 GB, free: 220 MB / 0.573 GB Notification: Performance of Templates: time 0.04406/2.558, allocations: 42.6 MB / 0.7345 GB, free: 199.2 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)