Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000992/0.0009918, allocations: 173.1 kB / 8.042 MB, free: 1.043 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 221.5 MB / 230 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009093/0.0009093, allocations: 98.89 kB / 280.9 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0408/0.0408, allocations: 8.083 MB / 339.7 MB, free: 7.008 MB / 234.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.966e-05/1.973e-05, allocations: 4.438 kB / 398.5 MB, free: 49.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1008, allocations: 52.53 MB / 451 MB, free: 5.391 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3378/0.4386, allocations: 85.83 MB / 0.5242 GB, free: 80.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001546/0.4388, allocations: 62.02 kB / 0.5243 GB, free: 80.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05358/0.4924, allocations: 22.64 MB / 0.5464 GB, free: 70.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4924, allocations: 0 / 0.5464 GB, free: 70.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.92e-05/0.4925, allocations: 16 kB / 0.5464 GB, free: 70.53 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.003296/0.4958, allocations: 1.32 MB / 0.5477 GB, free: 69.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.4959, allocations: 11.98 kB / 0.5477 GB, free: 69.15 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004158/0.4963, allocations: 146.3 kB / 0.5479 GB, free: 69.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001575/0.4979, allocations: 0.9462 MB / 0.5488 GB, free: 68.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.498, allocations: 195.5 kB / 0.549 GB, free: 67.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.4981, allocations: 39.95 kB / 0.549 GB, free: 67.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008891/0.499, allocations: 0.6039 MB / 0.5496 GB, free: 67.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009736/0.5, allocations: 0.7043 MB / 0.5503 GB, free: 66.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.5, allocations: 0 / 0.5503 GB, free: 66.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.174e-05/0.5001, allocations: 0 / 0.5503 GB, free: 66.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.5001, allocations: 16 kB / 0.5503 GB, free: 66.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004734/0.5049, allocations: 3.587 MB / 0.5538 GB, free: 62.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.5063, allocations: 1.305 MB / 0.5551 GB, free: 61.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005272/0.5069, allocations: 439.7 kB / 0.5555 GB, free: 60.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001115/0.507, allocations: 28.34 kB / 0.5555 GB, free: 60.83 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006012/0.5076, allocations: 471.8 kB / 0.556 GB, free: 60.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=87): time 3.025e-06/0.5076, allocations: 0 / 0.556 GB, free: 60.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=87): time 0.002071/0.5097, allocations: 1.035 MB / 0.557 GB, free: 59.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/0.5098, allocations: 270.6 kB / 0.5573 GB, free: 58.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002217/0.512, allocations: 1.567 MB / 0.5588 GB, free: 57.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.5121, allocations: 25.7 kB / 0.5588 GB, free: 57.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003668/0.5125, allocations: 0.4895 MB / 0.5593 GB, free: 56.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.5127, allocations: 275.8 kB / 0.5595 GB, free: 56.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-05/0.5128, allocations: 0 / 0.5595 GB, free: 56.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.454e-05/0.5128, allocations: 338 kB / 0.5599 GB, free: 56.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.5132, allocations: 293.5 kB / 0.5602 GB, free: 55.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004407/0.5137, allocations: 423.5 kB / 0.5606 GB, free: 55.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008418/0.5145, allocations: 349.2 kB / 0.5609 GB, free: 55.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.5145, allocations: 0 / 0.5609 GB, free: 55.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.002811/0.5174, allocations: 1.171 MB / 0.562 GB, free: 54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.5174, allocations: 8.125 kB / 0.562 GB, free: 53.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.5174, allocations: 4 kB / 0.562 GB, free: 53.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.519, allocations: 0.5058 MB / 0.5625 GB, free: 53.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004417/0.5194, allocations: 111.8 kB / 0.5626 GB, free: 53.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.5207, allocations: 1.178 MB / 0.5638 GB, free: 52.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008779/0.5216, allocations: 71.41 kB / 0.5639 GB, free: 52.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.162e-05/0.5217, allocations: 23.98 kB / 0.5639 GB, free: 52.07 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(start = bat.battery.SOC_start ) "Charge as current integration" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bat.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real bat.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.delay.firstTrigger,delay.firstTrigger,$whenCondition2,$whenCondition1,delay.sampleTrigger,brk4.BrkOpen,bat.ChargingMode,brk3.BrkOpen,$PRE.delay.y,delay.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {12 22} Notification: Performance of prepare postOptimizeDAE: time 0.0002409/0.522, allocations: 132.7 kB / 0.564 GB, free: 51.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002794/0.5222, allocations: 126.5 kB / 0.5641 GB, free: 51.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002488/0.5247, allocations: 1.185 MB / 0.5653 GB, free: 50.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.5248, allocations: 12 kB / 0.5653 GB, free: 50.6 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.5248, allocations: 4 kB / 0.5653 GB, free: 50.6 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.5248, allocations: 3.984 kB / 0.5653 GB, free: 50.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004321/0.5291, allocations: 2.884 MB / 0.5681 GB, free: 47.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.5292, allocations: 0 / 0.5681 GB, free: 47.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003807/0.5295, allocations: 103.8 kB / 0.5682 GB, free: 47.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/0.5312, allocations: 0.4919 MB / 0.5687 GB, free: 47.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.45e-05/0.5313, allocations: 8 kB / 0.5687 GB, free: 47.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.5325, allocations: 1.174 MB / 0.5699 GB, free: 45.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.5325, allocations: 0 / 0.5699 GB, free: 45.88 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002701/0.5352, allocations: 1.636 MB / 0.5715 GB, free: 44.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005206/0.5358, allocations: 299.4 kB / 0.5717 GB, free: 43.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002788/0.536, allocations: 20.05 kB / 0.5718 GB, free: 43.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007349/0.5368, allocations: 43.97 kB / 0.5718 GB, free: 43.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.537, allocations: 76.61 kB / 0.5719 GB, free: 43.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.633e-05/0.537, allocations: 31.98 kB / 0.5719 GB, free: 43.74 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001762/0.5388, allocations: 1.196 MB / 0.5731 GB, free: 42.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5388, allocations: 0 / 0.5731 GB, free: 42.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009019/0.5397, allocations: 227.7 kB / 0.5733 GB, free: 42.31 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 8 (delay.sampleTrigger,$whenCondition2,$whenCondition1,brk4.BrkOpen,bat.ChargingMode,brk3.BrkOpen,delay.firstTrigger,delay.y) * Number of discrete states: 1 (delay.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {12 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006709/0.5404, allocations: 266.8 kB / 0.5735 GB, free: 42.1 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002147/0.5426, allocations: 0.9644 MB / 0.5745 GB, free: 41.13 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5426, allocations: 0 / 0.5745 GB, free: 41.13 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001599/0.5442, allocations: 0.6218 MB / 0.5751 GB, free: 40.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.5453, allocations: 80.45 kB / 0.5752 GB, free: 40.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004/0.5493, allocations: 1.917 MB / 0.577 GB, free: 38.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00062/0.5499, allocations: 1.201 MB / 0.5782 GB, free: 37.26 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000545/0.5505, allocations: 187.1 kB / 0.5784 GB, free: 37.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002744/0.5508, allocations: 83.41 kB / 0.5785 GB, free: 36.99 MB / 362.7 MB Notification: Performance of SimCode: time 9.61e-07/0.5508, allocations: 0 / 0.5785 GB, free: 36.99 MB / 362.7 MB Notification: Performance of Templates: time 0.01843/0.5692, allocations: 12.53 MB / 0.5907 GB, free: 24.48 MB / 362.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)