Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.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.8303/0.8303, allocations: 150.9 MB / 166 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003982/0.0003982, allocations: 15.97 kB / 204 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1604, allocations: 31.34 MB / 235.4 MB, free: 5.676 MB / 190.1 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 1.548/1.709, allocations: 292.6 MB / 0.5156 GB, free: 14.01 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1917/1.9, allocations: 188.3 MB / 0.6996 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000234/1.901, allocations: 7.938 kB / 0.6996 GB, free: 1.27 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/PipePressureLoss.mo:33:3-34:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/PipePressureLoss.mo:35:3-36:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001171/1.901, allocations: 28.61 kB / 0.6996 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002506/1.901, allocations: 107.2 kB / 0.6997 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3383/2.239, allocations: 8.624 MB / 0.7081 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005464/2.24, allocations: 371 kB / 0.7085 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/2.24, allocations: 184.7 kB / 0.7087 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/2.24, allocations: 143.6 kB / 0.7088 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001811/2.24, allocations: 164.1 kB / 0.709 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.651e-05/2.24, allocations: 25.42 kB / 0.709 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03308/2.274, allocations: 19.91 MB / 0.7284 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001428/2.274, allocations: 66.97 kB / 0.7285 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003051/2.274, allocations: 168.2 kB / 0.7286 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0248/2.299, allocations: 9.866 MB / 0.7383 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/2.299, allocations: 0 / 0.7383 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.034e-06/2.299, allocations: 2.438 kB / 0.7383 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.043e-06/2.299, allocations: 1.203 kB / 0.7383 GB, free: 2.254 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.005127/2.304, allocations: 1.748 MB / 0.74 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/2.304, allocations: 11.95 kB / 0.74 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.317e-05/2.304, allocations: 43.38 kB / 0.74 GB, free: 1.098 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/2.304, allocations: 288.9 kB / 0.7403 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.407e-05/2.305, allocations: 25.28 kB / 0.7403 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/2.305, allocations: 34.62 kB / 0.7404 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004779/2.305, allocations: 356.2 kB / 0.7407 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/2.305, allocations: 2.5 kB / 0.7407 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.858e-05/2.305, allocations: 13.53 kB / 0.7407 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/2.305, allocations: 8.469 kB / 0.7407 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003565/2.305, allocations: 226.7 kB / 0.741 GB, free: 0.6797 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.00802/2.314, allocations: 6.108 MB / 0.7469 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/2.314, allocations: 81.25 kB / 0.747 GB, free: 11.44 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.943e-05/2.314, allocations: 29.34 kB / 0.747 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2214/2.535, allocations: 118.3 MB / 0.8625 GB, free: 2.406 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/2.535, allocations: 42.56 kB / 0.8626 GB, free: 2.355 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/2.535, allocations: 2.906 kB / 0.8626 GB, free: 2.355 MB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0008431/2.536, allocations: 270.6 kB / 0.8628 GB, free: 2.094 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/2.536, allocations: 62.39 kB / 0.8629 GB, free: 2.023 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003287/2.537, allocations: 282.9 kB / 0.8632 GB, free: 1.789 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/2.537, allocations: 29.2 kB / 0.8632 GB, free: 1.758 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/2.537, allocations: 218.7 kB / 0.8634 GB, free: 1.57 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/2.537, allocations: 33.91 kB / 0.8634 GB, free: 1.543 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.419e-05/2.537, allocations: 56.33 kB / 0.8635 GB, free: 1.5 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001104/2.537, allocations: 333.1 kB / 0.8638 GB, free: 1.176 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.6e-05/2.537, allocations: 41.92 kB / 0.8638 GB, free: 1.148 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/2.537, allocations: 141.4 kB / 0.864 GB, free: 0.9844 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/2.537, allocations: 189.6 kB / 0.8642 GB, free: 0.8047 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/2.537, allocations: 0 / 0.8642 GB, free: 0.8047 MB / 0.7012 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005201/2.538, allocations: 272.9 kB / 0.8644 GB, free: 0.6016 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/2.538, allocations: 8 kB / 0.8644 GB, free: 0.5938 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/2.538, allocations: 4 kB / 0.8644 GB, free: 0.5898 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008547/2.539, allocations: 135.4 kB / 0.8646 GB, free: 476 kB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/2.539, allocations: 38.89 kB / 0.8646 GB, free: 440 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000428/2.539, allocations: 0.5822 MB / 0.8652 GB, free: 15.86 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00017/2.54, allocations: 35.53 kB / 0.8652 GB, free: 15.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/2.54, allocations: 11.38 kB / 0.8652 GB, free: 15.81 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,pipePressureLoss.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,pipePressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001336/2.54, allocations: 152 kB / 0.8653 GB, free: 15.68 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.676e-05/2.54, allocations: 19.81 kB / 0.8654 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003773/2.54, allocations: 167.2 kB / 0.8655 GB, free: 15.52 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/2.54, allocations: 3.938 kB / 0.8655 GB, free: 15.52 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/2.54, allocations: 0 / 0.8655 GB, free: 15.52 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/2.54, allocations: 0 / 0.8655 GB, free: 15.52 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002772/2.541, allocations: 293.1 kB / 0.8658 GB, free: 15.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/2.541, allocations: 7.984 kB / 0.8658 GB, free: 15.23 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.387e-05/2.541, allocations: 4 kB / 0.8658 GB, free: 15.22 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000507/2.541, allocations: 91.14 kB / 0.8659 GB, free: 15.14 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/2.541, allocations: 7.594 kB / 0.8659 GB, free: 15.14 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003747/2.541, allocations: 0.5933 MB / 0.8665 GB, free: 14.55 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/2.542, allocations: 0 / 0.8665 GB, free: 14.55 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/2.542, allocations: 158.1 kB / 0.8666 GB, free: 14.4 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.185e-05/2.542, allocations: 109.1 kB / 0.8668 GB, free: 14.28 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.334e-05/2.542, allocations: 0.625 kB / 0.8668 GB, free: 14.28 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.722e-05/2.542, allocations: 1.25 kB / 0.8668 GB, free: 14.28 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.22e-05/2.542, allocations: 8.688 kB / 0.8668 GB, free: 14.27 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/2.542, allocations: 3.984 kB / 0.8668 GB, free: 14.27 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001958/2.542, allocations: 205.6 kB / 0.867 GB, free: 14.11 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.91e-07/2.542, allocations: 4 kB / 0.867 GB, free: 14.11 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003539/2.546, allocations: 1.438 MB / 0.8684 GB, free: 12.77 MB / 0.7169 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 (2): * Single equations (assignments): 1 * 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.007085/2.553, allocations: 2.273 MB / 0.8706 GB, free: 10.84 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003833/2.553, allocations: 118.5 kB / 0.8707 GB, free: 10.76 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/2.553, allocations: 0 / 0.8707 GB, free: 10.76 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.963e-05/2.553, allocations: 38.11 kB / 0.8707 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004103/2.554, allocations: 62.47 kB / 0.8708 GB, free: 10.68 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008176/2.555, allocations: 0.5479 MB / 0.8713 GB, free: 10.14 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/2.555, allocations: 0.7674 MB / 0.8721 GB, free: 9.344 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001379/2.555, allocations: 38.22 kB / 0.8721 GB, free: 9.305 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.127e-05/2.555, allocations: 23.44 kB / 0.8721 GB, free: 9.285 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/2.555, allocations: 0 / 0.8721 GB, free: 9.285 MB / 0.7169 GB Notification: Performance of Templates: time 0.06216/2.617, allocations: 45.67 MB / 0.9167 GB, free: 11.73 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)