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.7404/0.7404, allocations: 150.9 MB / 167.2 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003137/0.0003137, allocations: 17.19 kB / 237.7 MB, free: 1.82 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04765/0.04797, 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.484/1.532, allocations: 294.7 MB / 0.5506 GB, free: 12.75 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.443/1.975, allocations: 187.4 MB / 0.7336 GB, free: 2.078 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/1.975, allocations: 11.09 kB / 0.7336 GB, free: 2.078 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.0001172/1.975, allocations: 43.75 kB / 0.7336 GB, free: 2.078 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002529/1.976, allocations: 115.8 kB / 0.7337 GB, free: 2.078 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.02612/2.002, allocations: 11.31 MB / 0.7448 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004385/2.002, allocations: 383.8 kB / 0.7451 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/2.003, allocations: 201.3 kB / 0.7453 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/2.003, allocations: 147.8 kB / 0.7455 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/2.003, allocations: 168.3 kB / 0.7456 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/2.003, allocations: 33.52 kB / 0.7457 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02982/2.033, allocations: 19.9 MB / 0.7651 GB, free: 1.34 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001119/2.033, allocations: 72.36 kB / 0.7652 GB, free: 1.332 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002492/2.033, allocations: 180.9 kB / 0.7653 GB, free: 1.32 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02031/2.053, allocations: 9.742 MB / 0.7748 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/2.054, allocations: 0 / 0.7748 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.643e-06/2.054, allocations: 0.9688 kB / 0.7748 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.39e-05/2.054, allocations: 0 / 0.7748 GB, free: 13.76 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.00434/2.058, allocations: 1.747 MB / 0.7765 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/2.058, allocations: 12.7 kB / 0.7766 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.704e-05/2.058, allocations: 43.41 kB / 0.7766 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/2.058, allocations: 298.9 kB / 0.7769 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/2.058, allocations: 26.69 kB / 0.7769 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.645e-05/2.058, allocations: 34.38 kB / 0.7769 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004611/2.059, allocations: 359.1 kB / 0.7773 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/2.059, allocations: 0.75 kB / 0.7773 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.61e-05/2.059, allocations: 20.95 kB / 0.7773 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/2.059, allocations: 9 kB / 0.7773 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003331/2.059, allocations: 225.1 kB / 0.7775 GB, free: 12.17 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.007321/2.067, allocations: 6.103 MB / 0.7835 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/2.067, allocations: 71.09 kB / 0.7836 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.245e-05/2.067, allocations: 34 kB / 0.7836 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2138/2.281, allocations: 119 MB / 0.8998 GB, free: 9.977 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/2.281, allocations: 33.3 kB / 0.8998 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/2.281, allocations: 0 / 0.8998 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0008014/2.282, allocations: 277.8 kB / 0.9001 GB, free: 9.672 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/2.282, allocations: 59.33 kB / 0.9001 GB, free: 9.602 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/2.282, allocations: 286.1 kB / 0.9004 GB, free: 9.355 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/2.282, allocations: 25.7 kB / 0.9004 GB, free: 9.324 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/2.282, allocations: 225.7 kB / 0.9006 GB, free: 9.137 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.053e-05/2.282, allocations: 31.05 kB / 0.9007 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.982e-05/2.282, allocations: 53.73 kB / 0.9007 GB, free: 9.07 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001015/2.282, allocations: 337.2 kB / 0.901 GB, free: 8.742 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.602e-05/2.282, allocations: 41.77 kB / 0.9011 GB, free: 8.719 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/2.282, allocations: 141.3 kB / 0.9012 GB, free: 8.555 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/2.283, allocations: 193.9 kB / 0.9014 GB, free: 8.375 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/2.283, allocations: 4 kB / 0.9014 GB, free: 8.371 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004735/2.283, allocations: 277.6 kB / 0.9017 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/2.283, allocations: 8 kB / 0.9017 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/2.283, allocations: 0 / 0.9017 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008459/2.284, allocations: 137.8 kB / 0.9018 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/2.284, allocations: 37.7 kB / 0.9018 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003724/2.285, allocations: 0.5811 MB / 0.9024 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/2.285, allocations: 28.28 kB / 0.9024 GB, free: 7.402 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/2.285, allocations: 17.75 kB / 0.9025 GB, free: 7.387 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.0001318/2.285, allocations: 154.7 kB / 0.9026 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.155e-05/2.285, allocations: 20.61 kB / 0.9026 GB, free: 7.227 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003598/2.285, allocations: 159.9 kB / 0.9028 GB, free: 7.098 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/2.285, allocations: 3.938 kB / 0.9028 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/2.285, allocations: 0 / 0.9028 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/2.285, allocations: 4 kB / 0.9028 GB, free: 7.09 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002441/2.286, allocations: 295.6 kB / 0.9031 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/2.286, allocations: 5.188 kB / 0.9031 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.29e-05/2.286, allocations: 4 kB / 0.9031 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004294/2.286, allocations: 81.91 kB / 0.9031 GB, free: 6.668 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/2.286, allocations: 8 kB / 0.9032 GB, free: 6.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003328/2.286, allocations: 0.5914 MB / 0.9037 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/2.286, allocations: 0 / 0.9037 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/2.287, allocations: 166.3 kB / 0.9039 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.412e-05/2.287, allocations: 104.8 kB / 0.904 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/2.287, allocations: 0 / 0.904 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.608e-05/2.287, allocations: 1.203 kB / 0.904 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.194e-05/2.287, allocations: 7.984 kB / 0.904 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/2.287, allocations: 4 kB / 0.904 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001786/2.287, allocations: 202 kB / 0.9042 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/2.287, allocations: 0 / 0.9042 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003316/2.29, allocations: 1.444 MB / 0.9056 GB, free: 4.098 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.005519/2.296, allocations: 2.209 MB / 0.9078 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000382/2.296, allocations: 118.6 kB / 0.9079 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/2.296, allocations: 0 / 0.9079 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.15e-05/2.296, allocations: 42.27 kB / 0.9079 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003816/2.297, allocations: 69.02 kB / 0.908 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007588/2.298, allocations: 475 kB / 0.9084 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/2.298, allocations: 0.7558 MB / 0.9092 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/2.298, allocations: 27.44 kB / 0.9092 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/2.298, allocations: 3.094 kB / 0.9092 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of Templates: time 0.03584/2.334, allocations: 28.77 MB / 0.9373 GB, free: 3.883 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)