Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.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.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.821/0.821, allocations: 150.8 MB / 166.6 MB, free: 11.14 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002463, allocations: 7.984 kB / 204.7 MB, free: 6.164 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1436, allocations: 31.33 MB / 236 MB, free: 3.879 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.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe): time 1.595/1.739, allocations: 293 MB / 0.5167 GB, free: 8.961 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4963/2.235, allocations: 183.7 MB / 0.696 GB, free: 1.816 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003632/2.235, allocations: 2.562 kB / 0.696 GB, free: 1.816 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:71:3-72:53:writable] Warning: Connector Ce1 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/Volumes/Tank.mo:73:3-74:53:writable] Warning: Connector Cs2 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/Volumes/Tank.mo:78:3-79:55:writable] Warning: Connector Ce2 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/Volumes/Tank.mo:80:3-81:51:writable] Warning: Connector Cs1 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/Volumes/Tank.mo:71:3-72:53:writable] Warning: Connector Ce1 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/Volumes/Tank.mo:73:3-74:53:writable] Warning: Connector Cs2 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/Volumes/Tank.mo:78:3-79:55:writable] Warning: Connector Ce2 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/Volumes/Tank.mo:80:3-81:51:writable] Warning: Connector Cs1 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/LumpedStraightPipe.mo:49:3-50: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/LumpedStraightPipe.mo:51:3-53: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.0004127/2.236, allocations: 110 kB / 0.6961 GB, free: 1.816 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003282/2.236, allocations: 170.4 kB / 0.6963 GB, free: 1.812 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02224/2.258, allocations: 7.86 MB / 0.7039 GB, free: 1.645 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001414/2.26, allocations: 0.878 MB / 0.7048 GB, free: 1.645 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003904/2.26, allocations: 302.6 kB / 0.7051 GB, free: 1.617 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000533/2.261, allocations: 340.5 kB / 0.7054 GB, free: 1.617 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005226/2.261, allocations: 370.5 kB / 0.7058 GB, free: 1.617 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 9.695e-05/2.261, allocations: 42.56 kB / 0.7058 GB, free: 1.613 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03221/2.294, allocations: 17.25 MB / 0.7227 GB, free: 15.84 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003258/2.294, allocations: 133.6 kB / 0.7228 GB, free: 15.8 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0005084/2.295, allocations: 327.5 kB / 0.7231 GB, free: 15.76 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.02225/2.317, allocations: 9.322 MB / 0.7322 GB, free: 12.33 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/2.317, allocations: 0 / 0.7322 GB, free: 12.33 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.253e-06/2.317, allocations: 0 / 0.7322 GB, free: 12.33 MB / 0.573 GB Notification: Performance of Transformations before backend: time 9.017e-06/2.317, allocations: 0 / 0.7322 GB, free: 12.33 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.007305/2.324, allocations: 2.267 MB / 0.7344 GB, free: 10.96 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/2.324, allocations: 9.531 kB / 0.7344 GB, free: 10.96 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/2.324, allocations: 67.72 kB / 0.7345 GB, free: 10.93 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004294/2.325, allocations: 370.7 kB / 0.7348 GB, free: 10.64 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/2.325, allocations: 100.1 kB / 0.7349 GB, free: 10.57 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.97e-05/2.325, allocations: 57.92 kB / 0.735 GB, free: 10.56 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001962/2.327, allocations: 0.8804 MB / 0.7359 GB, free: 10.17 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/2.327, allocations: 6 kB / 0.7359 GB, free: 10.17 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.407e-05/2.327, allocations: 18.94 kB / 0.7359 GB, free: 10.17 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/2.327, allocations: 20.3 kB / 0.7359 GB, free: 10.16 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002928/2.33, allocations: 0.9317 MB / 0.7368 GB, free: 9.93 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.003694/2.334, allocations: 3.921 MB / 0.7406 GB, free: 6.758 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002499/2.336, allocations: 0.695 MB / 0.7413 GB, free: 6.57 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/2.338, allocations: 409.4 kB / 0.7417 GB, free: 6.477 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2429/2.581, allocations: 117.3 MB / 0.8563 GB, free: 10.47 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.405e-05/2.581, allocations: 41.41 kB / 0.8563 GB, free: 10.43 MB / 0.698 GB Notification: Performance of pre-optimization done (n=71): time 2.655e-06/2.581, allocations: 0 / 0.8563 GB, free: 10.43 MB / 0.698 GB Notification: Performance of matching and sorting (n=71): time 0.005091/2.586, allocations: 1.463 MB / 0.8577 GB, free: 9.184 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/2.586, allocations: 55.41 kB / 0.8578 GB, free: 9.117 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004177/2.586, allocations: 400.4 kB / 0.8582 GB, free: 8.789 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.145e-05/2.586, allocations: 36.58 kB / 0.8582 GB, free: 8.754 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/2.586, allocations: 287.9 kB / 0.8585 GB, free: 8.527 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/2.587, allocations: 246.1 kB / 0.8587 GB, free: 8.316 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/2.587, allocations: 161.3 kB / 0.8589 GB, free: 8.207 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001395/2.587, allocations: 366.7 kB / 0.8592 GB, free: 7.863 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/2.588, allocations: 382.6 kB / 0.8596 GB, free: 7.578 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/2.59, allocations: 0.6374 MB / 0.8602 GB, free: 6.941 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002881/2.593, allocations: 1.046 MB / 0.8612 GB, free: 6.027 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/2.593, allocations: 5.203 kB / 0.8612 GB, free: 6.023 MB / 0.698 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003827/2.597, allocations: 1.274 MB / 0.8625 GB, free: 5.062 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/2.597, allocations: 12 kB / 0.8625 GB, free: 5.051 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/2.597, allocations: 8.219 kB / 0.8625 GB, free: 5.043 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002502/2.599, allocations: 0.6217 MB / 0.8631 GB, free: 4.473 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00155/2.601, allocations: 288.7 kB / 0.8634 GB, free: 4.207 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/2.602, allocations: 1.963 MB / 0.8653 GB, free: 2.344 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/2.603, allocations: 161 kB / 0.8654 GB, free: 2.199 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.695e-05/2.603, allocations: 38.86 kB / 0.8655 GB, free: 2.168 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 16 (lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,tank2.Cs1.b,tank2.Ce2.a,tank2.Cs2.b,tank2.Ce1.a,tank1.Cs1.b,tank1.Ce2.a,tank1.Cs2.b,tank1.Ce1.a,tank2.Cs2.a,tank2.Cs1.a,tank2.Ce1.b,tank1.Cs1.a,tank1.Ce2.b,tank1.Ce1.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(3,9), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002726/2.604, allocations: 203.4 kB / 0.8657 GB, free: 2.008 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/2.604, allocations: 51.34 kB / 0.8657 GB, free: 1.957 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003595/2.607, allocations: 1.406 MB / 0.8671 GB, free: 0.7344 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003238/2.611, allocations: 1.113 MB / 0.8682 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/2.611, allocations: 0 / 0.8682 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/2.611, allocations: 3.984 kB / 0.8682 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005077/2.616, allocations: 2.3 MB / 0.8704 GB, free: 13.28 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/2.616, allocations: 4 kB / 0.8704 GB, free: 13.28 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001871/2.618, allocations: 335.3 kB / 0.8708 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003319/2.618, allocations: 221.4 kB / 0.871 GB, free: 12.74 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-05/2.618, allocations: 13.2 kB / 0.871 GB, free: 12.73 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007742/2.619, allocations: 1.222 MB / 0.8722 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/2.619, allocations: 1.094 kB / 0.8722 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02929/2.648, allocations: 14.17 MB / 0.886 GB, free: 12.87 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002943/2.649, allocations: 209.1 kB / 0.8862 GB, free: 12.65 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.791e-05/2.649, allocations: 12 kB / 0.8862 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000826/2.649, allocations: 103.8 kB / 0.8863 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/2.65, allocations: 76.83 kB / 0.8864 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/2.65, allocations: 20 kB / 0.8864 GB, free: 12.44 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002453/2.65, allocations: 259.1 kB / 0.8867 GB, free: 12.19 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.6e-07/2.65, allocations: 0 / 0.8867 GB, free: 12.19 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.006512/2.656, allocations: 2.573 MB / 0.8892 GB, free: 9.613 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tank1.z,tank1.h,tank2.z,tank2.h,lumpedStraightPipe.Q) * 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 (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01392/2.67, allocations: 3.174 MB / 0.8923 GB, free: 6.816 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.003992/2.674, allocations: 1.231 MB / 0.8935 GB, free: 5.598 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/2.674, allocations: 0 / 0.8935 GB, free: 5.598 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001712/2.676, allocations: 0.5831 MB / 0.894 GB, free: 5.035 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/2.677, allocations: 197.3 kB / 0.8942 GB, free: 4.836 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004221/2.682, allocations: 2.849 MB / 0.897 GB, free: 1.938 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000569/2.682, allocations: 0.9719 MB / 0.898 GB, free: 0.9414 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0007524/2.683, allocations: 116.8 kB / 0.8981 GB, free: 0.8281 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003129/2.683, allocations: 75.41 kB / 0.8981 GB, free: 0.7539 MB / 0.7292 GB Notification: Performance of SimCode: time 6.51e-07/2.683, allocations: 0 / 0.8981 GB, free: 0.7539 MB / 0.7292 GB Notification: Performance of Templates: time 0.2807/2.964, allocations: 79.25 MB / 0.9755 GB, free: 434.7 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe 2>&1)