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.8172/0.8172, allocations: 150.9 MB / 166.7 MB, free: 11.13 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002594/0.0002594, allocations: 11.97 kB / 204.7 MB, free: 6.145 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.1735, allocations: 31.32 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 1.61/1.784, allocations: 292 MB / 0.5156 GB, free: 10.02 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4772/2.261, allocations: 188.3 MB / 0.6995 GB, free: 2.738 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003245/2.262, allocations: 6.656 kB / 0.6995 GB, free: 2.738 MB / 0.5573 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.000138/2.262, allocations: 36.38 kB / 0.6996 GB, free: 2.734 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003029/2.262, allocations: 95.59 kB / 0.6997 GB, free: 2.734 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02511/2.287, allocations: 8.637 MB / 0.7081 GB, free: 2.48 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0004978/2.288, allocations: 376.4 kB / 0.7085 GB, free: 2.48 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/2.288, allocations: 189.4 kB / 0.7086 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/2.288, allocations: 145.3 kB / 0.7088 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/2.288, allocations: 162.1 kB / 0.7089 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 3.943e-05/2.288, allocations: 23.81 kB / 0.709 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03463/2.323, allocations: 19.91 MB / 0.7284 GB, free: 1.035 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001234/2.323, allocations: 69.89 kB / 0.7285 GB, free: 1.02 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0002519/2.323, allocations: 167.2 kB / 0.7286 GB, free: 1.012 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.02508/2.349, allocations: 9.883 MB / 0.7383 GB, free: 13.46 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 1.103e-05/2.349, allocations: 5.781 kB / 0.7383 GB, free: 13.46 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.943e-06/2.349, allocations: 0 / 0.7383 GB, free: 13.46 MB / 0.573 GB Notification: Performance of Transformations before backend: time 6.903e-06/2.349, allocations: 0 / 0.7383 GB, free: 13.46 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.004632/2.353, allocations: 1.744 MB / 0.74 GB, free: 12.33 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/2.353, allocations: 11.03 kB / 0.74 GB, free: 12.33 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.615e-05/2.353, allocations: 40.31 kB / 0.74 GB, free: 12.31 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003005/2.354, allocations: 289.7 kB / 0.7403 GB, free: 12.06 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/2.354, allocations: 25.34 kB / 0.7403 GB, free: 12.06 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.041e-05/2.354, allocations: 32.5 kB / 0.7404 GB, free: 12.06 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004843/2.354, allocations: 352.5 kB / 0.7407 GB, free: 11.92 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/2.354, allocations: 0 / 0.7407 GB, free: 11.92 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/2.354, allocations: 18.91 kB / 0.7407 GB, free: 11.91 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/2.354, allocations: 12.69 kB / 0.7407 GB, free: 11.91 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003536/2.355, allocations: 226 kB / 0.7409 GB, free: 11.88 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.00805/2.363, allocations: 6.108 MB / 0.7469 GB, free: 6.629 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/2.363, allocations: 79.52 kB / 0.747 GB, free: 6.598 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.905e-05/2.363, allocations: 32.31 kB / 0.747 GB, free: 6.586 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2403/2.603, allocations: 118.3 MB / 0.8625 GB, free: 7.398 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/2.603, allocations: 42.55 kB / 0.8626 GB, free: 7.348 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.954e-06/2.604, allocations: 0 / 0.8626 GB, free: 7.348 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0008642/2.604, allocations: 280.7 kB / 0.8628 GB, free: 7.055 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.854e-05/2.604, allocations: 56.55 kB / 0.8629 GB, free: 6.988 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003071/2.605, allocations: 278.9 kB / 0.8631 GB, free: 6.715 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/2.605, allocations: 29.7 kB / 0.8632 GB, free: 6.68 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/2.605, allocations: 226.1 kB / 0.8634 GB, free: 6.457 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/2.605, allocations: 30.53 kB / 0.8634 GB, free: 6.43 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.626e-05/2.605, allocations: 53.61 kB / 0.8635 GB, free: 6.371 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000105/2.605, allocations: 336.3 kB / 0.8638 GB, free: 6.035 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.53e-05/2.605, allocations: 43.97 kB / 0.8638 GB, free: 5.992 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/2.605, allocations: 141.1 kB / 0.864 GB, free: 5.812 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/2.606, allocations: 187 kB / 0.8641 GB, free: 5.598 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/2.606, allocations: 4 kB / 0.8642 GB, free: 5.594 MB / 0.698 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005036/2.606, allocations: 274.3 kB / 0.8644 GB, free: 5.34 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/2.606, allocations: 8 kB / 0.8644 GB, free: 5.332 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/2.606, allocations: 3 kB / 0.8644 GB, free: 5.332 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008315/2.607, allocations: 133 kB / 0.8646 GB, free: 5.199 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/2.607, allocations: 38.89 kB / 0.8646 GB, free: 5.164 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003895/2.608, allocations: 0.5799 MB / 0.8652 GB, free: 4.562 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001813/2.608, allocations: 31.59 kB / 0.8652 GB, free: 4.531 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/2.608, allocations: 23.98 kB / 0.8652 GB, free: 4.508 MB / 0.698 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.000134/2.608, allocations: 150.9 kB / 0.8654 GB, free: 4.355 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.52e-05/2.608, allocations: 15.81 kB / 0.8654 GB, free: 4.34 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003731/2.608, allocations: 159.9 kB / 0.8655 GB, free: 4.172 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/2.608, allocations: 3.938 kB / 0.8655 GB, free: 4.168 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/2.608, allocations: 0 / 0.8655 GB, free: 4.168 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/2.608, allocations: 0 / 0.8655 GB, free: 4.168 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/2.609, allocations: 304.1 kB / 0.8658 GB, free: 3.824 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/2.609, allocations: 1.203 kB / 0.8658 GB, free: 3.824 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.506e-05/2.609, allocations: 6.906 kB / 0.8658 GB, free: 3.82 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004704/2.609, allocations: 88.77 kB / 0.8659 GB, free: 3.73 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/2.609, allocations: 4 kB / 0.8659 GB, free: 3.727 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003564/2.609, allocations: 0.5875 MB / 0.8665 GB, free: 3.113 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/2.609, allocations: 4.062 kB / 0.8665 GB, free: 3.109 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008393/2.61, allocations: 0.841 MB / 0.8673 GB, free: 2.211 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.938e-05/2.61, allocations: 108.8 kB / 0.8674 GB, free: 2.086 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/2.61, allocations: 4 kB / 0.8674 GB, free: 2.082 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.683e-05/2.611, allocations: 5.031 kB / 0.8674 GB, free: 2.078 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.647e-05/2.611, allocations: 18.73 kB / 0.8674 GB, free: 2.062 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.593e-06/2.611, allocations: 4 kB / 0.8674 GB, free: 2.059 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001982/2.611, allocations: 204.9 kB / 0.8676 GB, free: 1.863 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.71e-07/2.611, allocations: 0 / 0.8676 GB, free: 1.863 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003678/2.614, allocations: 1.499 MB / 0.8691 GB, free: 372 kB / 0.698 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.0063/2.621, allocations: 2.269 MB / 0.8713 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004042/2.621, allocations: 110.4 kB / 0.8714 GB, free: 14.28 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/2.621, allocations: 4.25 kB / 0.8714 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.553e-05/2.621, allocations: 35.98 kB / 0.8715 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004074/2.622, allocations: 62.91 kB / 0.8715 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009356/2.623, allocations: 0.6733 MB / 0.8722 GB, free: 13.47 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/2.623, allocations: 0.7558 MB / 0.8729 GB, free: 12.69 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0001375/2.623, allocations: 42.2 kB / 0.873 GB, free: 12.65 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.801e-05/2.623, allocations: 19.44 kB / 0.873 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/2.623, allocations: 0 / 0.873 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of Templates: time 0.05532/2.679, allocations: 45.77 MB / 0.9177 GB, free: 14.9 MB / 0.7605 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)