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.7436/0.7436, allocations: 150.9 MB / 167.2 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003068/0.0003069, allocations: 19.8 kB / 237.7 MB, free: 1.797 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04499/0.04531, allocations: 31.34 MB / 269.1 MB, free: 7.121 MB / 222.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.463/1.508, allocations: 294.7 MB / 0.5505 GB, free: 13.23 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4367/1.945, allocations: 187.4 MB / 0.7336 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001792/1.945, allocations: 8.969 kB / 0.7336 GB, free: 1.809 MB / 0.5919 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.000119/1.945, allocations: 38.27 kB / 0.7336 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002704/1.945, allocations: 117.8 kB / 0.7337 GB, free: 1.809 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02594/1.971, allocations: 11.31 MB / 0.7448 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0003756/1.972, allocations: 388.3 kB / 0.7451 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/1.972, allocations: 191.5 kB / 0.7453 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/1.972, allocations: 154.2 kB / 0.7455 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/1.972, allocations: 168 kB / 0.7456 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.771e-05/1.972, allocations: 33.22 kB / 0.7457 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02769/2, allocations: 19.89 MB / 0.7651 GB, free: 1.207 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001022/2, allocations: 76.36 kB / 0.7652 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002369/2, allocations: 177.6 kB / 0.7653 GB, free: 1.188 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0177/2.018, allocations: 9.759 MB / 0.7749 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/2.018, allocations: 0.9062 kB / 0.7749 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.463e-06/2.018, allocations: 0 / 0.7749 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.075e-06/2.018, allocations: 2.344 kB / 0.7749 GB, free: 13.68 MB / 0.6075 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.003453/2.022, allocations: 1.746 MB / 0.7766 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/2.022, allocations: 14.33 kB / 0.7766 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/2.022, allocations: 42.03 kB / 0.7766 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003309/2.022, allocations: 301.7 kB / 0.7769 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/2.022, allocations: 29.14 kB / 0.7769 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.44e-05/2.022, allocations: 32.69 kB / 0.777 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004845/2.023, allocations: 357.1 kB / 0.7773 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/2.023, allocations: 3.688 kB / 0.7773 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.006e-05/2.023, allocations: 16.09 kB / 0.7773 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/2.023, allocations: 10.44 kB / 0.7773 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003453/2.023, allocations: 222.9 kB / 0.7775 GB, free: 12.08 MB / 0.6075 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.007203/2.03, allocations: 6.105 MB / 0.7835 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/2.031, allocations: 78.03 kB / 0.7836 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.454e-05/2.031, allocations: 29.19 kB / 0.7836 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2224/2.253, allocations: 119 MB / 0.8998 GB, free: 10 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/2.253, allocations: 33.06 kB / 0.8998 GB, free: 9.961 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.314e-06/2.253, allocations: 0 / 0.8998 GB, free: 9.961 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0008268/2.254, allocations: 280.6 kB / 0.9001 GB, free: 9.691 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/2.254, allocations: 58.84 kB / 0.9001 GB, free: 9.625 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003185/2.254, allocations: 290.7 kB / 0.9004 GB, free: 9.379 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/2.254, allocations: 25.7 kB / 0.9004 GB, free: 9.348 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/2.254, allocations: 215.2 kB / 0.9006 GB, free: 9.164 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.461e-05/2.254, allocations: 37.55 kB / 0.9007 GB, free: 9.137 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.612e-05/2.255, allocations: 60.7 kB / 0.9007 GB, free: 9.09 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001053/2.255, allocations: 328.9 kB / 0.9011 GB, free: 8.766 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.831e-05/2.255, allocations: 46.34 kB / 0.9011 GB, free: 8.734 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/2.255, allocations: 145.1 kB / 0.9012 GB, free: 8.574 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002157/2.255, allocations: 185.8 kB / 0.9014 GB, free: 8.398 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/2.255, allocations: 4 kB / 0.9014 GB, free: 8.395 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005034/2.256, allocations: 270.1 kB / 0.9017 GB, free: 8.195 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/2.256, allocations: 8.438 kB / 0.9017 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/2.256, allocations: 8 kB / 0.9017 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008365/2.257, allocations: 135.9 kB / 0.9018 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/2.257, allocations: 40.64 kB / 0.9019 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003876/2.257, allocations: 0.5815 MB / 0.9024 GB, free: 7.449 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/2.257, allocations: 30.25 kB / 0.9025 GB, free: 7.422 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/2.257, allocations: 19.61 kB / 0.9025 GB, free: 7.406 MB / 0.7325 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.0001311/2.257, allocations: 140.4 kB / 0.9026 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.48e-05/2.257, allocations: 23.72 kB / 0.9026 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003511/2.258, allocations: 160.6 kB / 0.9028 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/2.258, allocations: 7.938 kB / 0.9028 GB, free: 7.117 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/2.258, allocations: 3.047 kB / 0.9028 GB, free: 7.117 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/2.258, allocations: 4 kB / 0.9028 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/2.258, allocations: 300 kB / 0.9031 GB, free: 6.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/2.258, allocations: 0 / 0.9031 GB, free: 6.801 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.433e-05/2.258, allocations: 4 kB / 0.9031 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004292/2.259, allocations: 83.97 kB / 0.9032 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/2.259, allocations: 4 kB / 0.9032 GB, free: 6.711 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003715/2.259, allocations: 0.5949 MB / 0.9038 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/2.259, allocations: 1.094 kB / 0.9038 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000285/2.259, allocations: 156.7 kB / 0.9039 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.388e-05/2.259, allocations: 101 kB / 0.904 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/2.259, allocations: 4 kB / 0.904 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.669e-05/2.259, allocations: 3.984 kB / 0.904 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.132e-05/2.26, allocations: 4 kB / 0.904 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/2.26, allocations: 0 / 0.904 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001976/2.26, allocations: 213.9 kB / 0.9042 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/2.26, allocations: 4.391 kB / 0.9042 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003175/2.263, allocations: 1.436 MB / 0.9056 GB, free: 4.148 MB / 0.7325 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.006002/2.269, allocations: 2.202 MB / 0.9078 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002945/2.269, allocations: 133.7 kB / 0.9079 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/2.269, allocations: 0 / 0.9079 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.048e-05/2.269, allocations: 33.08 kB / 0.9079 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/2.27, allocations: 68.16 kB / 0.908 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007556/2.27, allocations: 477.1 kB / 0.9085 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/2.271, allocations: 0.7558 MB / 0.9092 GB, free: 0.7383 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.021e-05/2.271, allocations: 32.62 kB / 0.9092 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/2.271, allocations: 0 / 0.9092 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of Templates: time 0.03709/2.308, allocations: 28.72 MB / 0.9373 GB, free: 3.984 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)