Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.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.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8454/0.8454, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.708e-05/1.735e-05, allocations: 0 / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2007, allocations: 31.98 MB / 236.8 MB, free: 5.453 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve): time 1.796/1.997, allocations: 296.5 MB / 0.5208 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6171/2.614, allocations: 189.2 MB / 0.7056 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009199/2.615, allocations: 24.62 kB / 0.7056 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005352/2.615, allocations: 124.2 kB / 0.7057 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00122/2.617, allocations: 373.6 kB / 0.7061 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03273/2.649, allocations: 9.754 MB / 0.7156 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002074/2.652, allocations: 1.487 MB / 0.717 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008403/2.652, allocations: 0.7775 MB / 0.7178 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004771/2.653, allocations: 465.1 kB / 0.7182 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005174/2.653, allocations: 0.5334 MB / 0.7188 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.532e-05/2.653, allocations: 53.69 kB / 0.7188 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03815/2.692, allocations: 20.26 MB / 0.7386 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.00047/2.692, allocations: 224.3 kB / 0.7388 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001295/2.693, allocations: 0.6247 MB / 0.7394 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03718/2.731, allocations: 11.13 MB / 0.7503 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/2.731, allocations: 0 / 0.7503 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.304e-06/2.731, allocations: 0 / 0.7503 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.925e-05/2.731, allocations: 0 / 0.7503 GB, free: 14.13 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.00893/2.74, allocations: 2.439 MB / 0.7527 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/2.74, allocations: 16.17 kB / 0.7527 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005753/2.74, allocations: 163.8 kB / 0.7528 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001485/2.742, allocations: 0.7079 MB / 0.7535 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/2.742, allocations: 102.5 kB / 0.7536 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002893/2.742, allocations: 126.2 kB / 0.7538 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002992/2.745, allocations: 1.328 MB / 0.7551 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.823e-05/2.745, allocations: 4 kB / 0.7551 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/2.746, allocations: 52 kB / 0.7551 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/2.746, allocations: 32.44 kB / 0.7551 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002375/2.748, allocations: 1.058 MB / 0.7562 GB, free: 11.52 MB / 0.5919 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.02927/2.777, allocations: 19.54 MB / 0.7753 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008577/2.778, allocations: 385.4 kB / 0.7756 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003819/2.779, allocations: 189.2 kB / 0.7758 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3836/3.162, allocations: 182 MB / 0.9535 GB, free: 7.75 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.033e-05/3.162, allocations: 34.19 kB / 0.9536 GB, free: 7.711 MB / 0.795 GB Notification: Performance of pre-optimization done (n=35): time 4.709e-06/3.162, allocations: 0 / 0.9536 GB, free: 7.711 MB / 0.795 GB Notification: Performance of matching and sorting (n=35): time 0.005239/3.168, allocations: 1.266 MB / 0.9548 GB, free: 6.629 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/3.168, allocations: 55.41 kB / 0.9549 GB, free: 6.562 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001764/3.169, allocations: 0.84 MB / 0.9557 GB, free: 5.918 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/3.169, allocations: 33.58 kB / 0.9557 GB, free: 5.883 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006239/3.17, allocations: 0.6505 MB / 0.9563 GB, free: 5.379 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/3.17, allocations: 136.9 kB / 0.9565 GB, free: 5.266 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000199/3.171, allocations: 90.97 kB / 0.9566 GB, free: 5.203 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0002353/3.171, allocations: 391.4 kB / 0.9569 GB, free: 4.844 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005806/3.171, allocations: 224.8 kB / 0.9572 GB, free: 4.703 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007417/3.172, allocations: 0.5898 MB / 0.9577 GB, free: 4.051 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/3.173, allocations: 0.8256 MB / 0.9585 GB, free: 3.117 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.398e-05/3.173, allocations: 0 / 0.9585 GB, free: 3.117 MB / 0.795 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002058/3.175, allocations: 1.005 MB / 0.9595 GB, free: 2.176 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/3.175, allocations: 16.16 kB / 0.9595 GB, free: 2.16 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.11e-05/3.175, allocations: 12 kB / 0.9595 GB, free: 2.148 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003065/3.179, allocations: 0.6393 MB / 0.9602 GB, free: 1.508 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004162/3.179, allocations: 134.5 kB / 0.9603 GB, free: 1.391 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/3.18, allocations: 0.9619 MB / 0.9612 GB, free: 420 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007256/3.181, allocations: 122.8 kB / 0.9614 GB, free: 296 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.797e-05/3.181, allocations: 44 kB / 0.9614 GB, free: 252 kB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 24 (threeWayValve.VolumeA1.Cs2.ftype,SourceP1.C.ftype,threeWayValve.VolumeA1.Cs1.ftype,threeWayValve.VolumeA1.Ce2.ftype,threeWayValve.VolumeA1.Ce2.diff_on_1,threeWayValve.VolumeA1.fluids[1],threeWayValve.VolumeA1.Cs2.diff_on_2,threeWayValve.VolumeA1.Cs1.diff_on_2,threeWayValve.PerteDP1.C2.diff_on_1,PuitsP1.fluid,threeWayValve.Valve1.fluid,threeWayValve.Valve2.fluid,threeWayValve.PerteDP1.fluid,PuitsP2.fluid,threeWayValve.VolumeA1.fluid1,threeWayValve.fluid1,SourceP1.fluid1,threeWayValve.VolumeA1.Ce1.diff_on_2,SourceP1.C.diff_on_2,threeWayValve.VolumeA1.Cs2.diff_on_1,threeWayValve.C3.diff_on_1,threeWayValve.VolumeA1.Cs1.diff_on_1,threeWayValve.C2.diff_on_1,threeWayValve.VolumeA1.Ce2.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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 {(4,22)} Notification: Performance of prepare postOptimizeDAE: time 0.000572/3.182, allocations: 318.4 kB / 0.9617 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001527/3.182, allocations: 86.91 kB / 0.9618 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/3.183, allocations: 0.6937 MB / 0.9625 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/3.183, allocations: 4 kB / 0.9625 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/3.183, allocations: 4 kB / 0.9625 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/3.183, allocations: 3.984 kB / 0.9625 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/3.185, allocations: 0.8272 MB / 0.9633 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/3.185, allocations: 0 / 0.9633 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/3.185, allocations: 34.88 kB / 0.9633 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002017/3.187, allocations: 492 kB / 0.9638 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/3.187, allocations: 11.98 kB / 0.9638 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/3.188, allocations: 0.959 MB / 0.9647 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/3.188, allocations: 7.828 kB / 0.9647 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/3.19, allocations: 0.7229 MB / 0.9654 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003512/3.19, allocations: 223.9 kB / 0.9657 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/3.19, allocations: 4 kB / 0.9657 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003318/3.19, allocations: 23.98 kB / 0.9657 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.838e-05/3.19, allocations: 31.64 kB / 0.9657 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.042e-05/3.191, allocations: 16 kB / 0.9657 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008079/3.191, allocations: 0.5341 MB / 0.9662 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/3.191, allocations: 0 / 0.9662 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.005673/3.197, allocations: 1.65 MB / 0.9679 GB, free: 9.543 MB / 0.8106 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 (10): * Single equations (assignments): 9 * 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 {(4,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008586/3.206, allocations: 2.266 MB / 0.9701 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001576/3.207, allocations: 0.6165 MB / 0.9707 GB, free: 6.984 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/3.207, allocations: 0 / 0.9707 GB, free: 6.984 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006235/3.208, allocations: 237 kB / 0.9709 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/3.209, allocations: 188.8 kB / 0.9711 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003559/3.213, allocations: 2.138 MB / 0.9732 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007267/3.213, allocations: 1.043 MB / 0.9742 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000488/3.214, allocations: 126.5 kB / 0.9743 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/3.214, allocations: 47.44 kB / 0.9744 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of SimCode: time 1.933e-06/3.214, allocations: 0 / 0.9744 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of Templates: time 0.2838/3.498, allocations: 52.27 MB / 1.025 GB, free: 437.8 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe 2>&1) Environment - environmentSimulation: