Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.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.SimpleExamples.TestStaticDrum1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8847/0.8847, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.66e-05/1.673e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.205, allocations: 31.98 MB / 236.8 MB, free: 4.785 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.SimpleExamples.TestStaticDrum1): time 1.787/1.992, allocations: 297.8 MB / 0.5221 GB, free: 9.238 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6376/2.63, allocations: 191 MB / 0.7086 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/2.631, allocations: 12.06 kB / 0.7086 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005367/2.632, allocations: 166 kB / 0.7087 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001307/2.633, allocations: 447.6 kB / 0.7092 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03263/2.666, allocations: 9.878 MB / 0.7188 GB, free: 3.719 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002726/2.668, allocations: 1.848 MB / 0.7206 GB, free: 3.719 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/2.669, allocations: 0.9046 MB / 0.7215 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008538/2.67, allocations: 0.5835 MB / 0.7221 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006557/2.671, allocations: 0.6842 MB / 0.7227 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000119/2.671, allocations: 84.84 kB / 0.7228 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04336/2.714, allocations: 18.17 MB / 0.7406 GB, free: 2.957 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0007614/2.715, allocations: 283.6 kB / 0.7408 GB, free: 2.91 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001849/2.717, allocations: 0.8132 MB / 0.7416 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04427/2.761, allocations: 10.75 MB / 0.7521 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/2.761, allocations: 3.562 kB / 0.7521 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.884e-06/2.761, allocations: 4 kB / 0.7521 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001287/2.762, allocations: 3 kB / 0.7521 GB, free: 14.75 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: 517 * Number of variables: 517 Notification: Performance of Generate backend data structure: time 0.009084/2.771, allocations: 2.538 MB / 0.7546 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/2.771, allocations: 10.89 kB / 0.7546 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005654/2.771, allocations: 197.5 kB / 0.7548 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/2.772, allocations: 0.6319 MB / 0.7554 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/2.773, allocations: 144.6 kB / 0.7556 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000283/2.773, allocations: 189.9 kB / 0.7557 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003612/2.777, allocations: 2.062 MB / 0.7578 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.291e-05/2.777, allocations: 8.75 kB / 0.7578 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001677/2.777, allocations: 85.5 kB / 0.7578 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-05/2.777, allocations: 52.28 kB / 0.7579 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00229/2.779, allocations: 1.196 MB / 0.7591 GB, free: 11.63 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.01166/2.791, allocations: 13.18 MB / 0.7719 GB, free: 15.86 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005703/2.791, allocations: 293.1 kB / 0.7722 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/2.792, allocations: 134.8 kB / 0.7723 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3457/3.137, allocations: 179.6 MB / 0.9478 GB, free: 14.04 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/3.137, allocations: 39.81 kB / 0.9478 GB, free: 13.99 MB / 0.795 GB Notification: Performance of pre-optimization done (n=37): time 2.454e-06/3.137, allocations: 0 / 0.9478 GB, free: 13.99 MB / 0.795 GB Notification: Performance of matching and sorting (n=37): time 0.002949/3.14, allocations: 1.055 MB / 0.9488 GB, free: 13.03 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/3.14, allocations: 55.41 kB / 0.9489 GB, free: 12.96 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001345/3.142, allocations: 1.032 MB / 0.9499 GB, free: 12.18 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/3.142, allocations: 32.7 kB / 0.9499 GB, free: 12.14 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005548/3.142, allocations: 0.8411 MB / 0.9507 GB, free: 11.48 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/3.143, allocations: 154.8 kB / 0.9509 GB, free: 11.36 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/3.143, allocations: 123.1 kB / 0.951 GB, free: 11.28 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001738/3.143, allocations: 411.5 kB / 0.9514 GB, free: 10.91 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003579/3.143, allocations: 225.5 kB / 0.9516 GB, free: 10.77 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007451/3.144, allocations: 0.8254 MB / 0.9524 GB, free: 9.68 MB / 0.795 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.00489/3.149, allocations: 2.144 MB / 0.9545 GB, free: 7.348 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.466e-05/3.149, allocations: 4 kB / 0.9545 GB, free: 7.344 MB / 0.795 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002337/3.151, allocations: 1.279 MB / 0.9558 GB, free: 6.184 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/3.151, allocations: 16 kB / 0.9558 GB, free: 6.168 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.973e-05/3.151, allocations: 24 kB / 0.9558 GB, free: 6.145 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/3.152, allocations: 0.497 MB / 0.9563 GB, free: 5.648 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005636/3.153, allocations: 200.2 kB / 0.9565 GB, free: 5.473 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/3.154, allocations: 1.894 MB / 0.9583 GB, free: 3.52 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/3.156, allocations: 249.8 kB / 0.9586 GB, free: 3.273 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.883e-05/3.156, allocations: 67.98 kB / 0.9586 GB, free: 3.207 MB / 0.795 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: sensorT.h = $START.sensorT.h. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 36 (sourcePlug.fluid1,sourcePlug.C.ftype,StaticDrumTh1.Cs_sur.ftype,StaticDrumTh1.Cs_purg.ftype,StaticDrumTh1.Cs_sup.ftype,StaticDrumTh1.Cs_eva.ftype,StaticDrumTh1.Ce_eva.ftype,StaticDrumTh1.Ce_sup.ftype,StaticDrumTh1.Ce_steam.ftype,StaticDrumTh1.fluids[1],sinkP2.fluid1,singularPressureLossVALI1.fluid,singularPressureLossVALI2.fluid,sinkP1.fluid,sensorT.fluid,singularPressureLossVALI3.fluid,sensorT1.fluid,StaticDrumTh1.Ce_eco.diff_on_2,refXgas.C1.diff_on_2,singularPressureLossVALI2.C2.diff_on_1,StaticDrumTh1.Cs_sur.diff_on_2,StaticDrumTh1.Cs_sur.diff_on_1,sensorT1.C2.diff_on_1,StaticDrumTh1.Cs_purg.diff_on_2,StaticDrumTh1.Cs_purg.diff_on_1,singularPressureLossVALI1.C2.diff_on_1,StaticDrumTh1.Cs_sup.diff_on_1,StaticDrumTh1.Cs_eva.diff_on_1,StaticDrumTh1.Ce_eva.diff_on_2,StaticDrumTh1.Ce_sup.diff_on_2,StaticDrumTh1.Ce_steam.diff_on_2,StaticDrumTh1.Cs_sup.diff_on_2,StaticDrumTh1.Cs_eva.diff_on_2,StaticDrumTh1.Ce_eva.diff_on_1,StaticDrumTh1.Ce_sup.diff_on_1,StaticDrumTh1.Ce_steam.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 116 * 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 {(1,3), (1,3), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0007042/3.157, allocations: 330.1 kB / 0.9589 GB, free: 2.895 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/3.157, allocations: 108.5 kB / 0.959 GB, free: 2.789 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/3.158, allocations: 0.5644 MB / 0.9596 GB, free: 2.219 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/3.158, allocations: 0 / 0.9596 GB, free: 2.219 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/3.158, allocations: 8 kB / 0.9596 GB, free: 2.211 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/3.158, allocations: 0 / 0.9596 GB, free: 2.211 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/3.159, allocations: 0.9005 MB / 0.9605 GB, free: 1.266 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/3.159, allocations: 3.938 kB / 0.9605 GB, free: 1.262 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001328/3.159, allocations: 31.97 kB / 0.9605 GB, free: 1.23 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009399/3.16, allocations: 460.8 kB / 0.961 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/3.16, allocations: 8 kB / 0.961 GB, free: 0.7695 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001346/3.162, allocations: 1.85 MB / 0.9628 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/3.162, allocations: 4 kB / 0.9628 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/3.163, allocations: 0.6225 MB / 0.9634 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003151/3.163, allocations: 217.7 kB / 0.9636 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.689e-05/3.163, allocations: 0 / 0.9636 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/3.163, allocations: 8 kB / 0.9636 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.949e-05/3.164, allocations: 19.97 kB / 0.9636 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/3.164, allocations: 8 kB / 0.9636 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008546/3.164, allocations: 0.6556 MB / 0.9643 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/3.164, allocations: 0 / 0.9643 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.006252/3.171, allocations: 1.607 MB / 0.9658 GB, free: 11.66 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): 7 * 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 {(1,3), (1,3), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007961/3.179, allocations: 2.088 MB / 0.9679 GB, free: 9.832 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001747/3.18, allocations: 0.6744 MB / 0.9685 GB, free: 9.215 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/3.18, allocations: 0 / 0.9685 GB, free: 9.215 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004507/3.181, allocations: 207.5 kB / 0.9687 GB, free: 9.012 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001614/3.183, allocations: 293.7 kB / 0.969 GB, free: 8.727 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003748/3.186, allocations: 2.419 MB / 0.9714 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007028/3.187, allocations: 1.13 MB / 0.9725 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005362/3.188, allocations: 156.5 kB / 0.9726 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/3.188, allocations: 67.38 kB / 0.9727 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of SimCode: time 1.754e-06/3.188, allocations: 4 kB / 0.9727 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of Templates: time 0.3045/3.492, allocations: 52.54 MB / 1.024 GB, free: 438.8 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.pipe 2>&1) Environment - environmentSimulation: