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.001295/0.001295, allocations: 172.9 kB / 16.8 MB, free: 4.906 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 223.3 MB / 240.8 MB, free: 9.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007907/0.0007902, allocations: 99.84 kB / 292 MB, free: 10.55 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05157/0.05157, allocations: 8.1 MB / 351.2 MB, free: 15.32 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.0003561, allocations: 12 kB / 414.4 MB, free: 57.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09397, allocations: 52.51 MB / 466.9 MB, free: 4.699 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3037/0.3977, allocations: 86.64 MB / 0.5406 GB, free: 14.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001828/0.398, allocations: 71.59 kB / 0.5406 GB, free: 14.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06162/0.4596, allocations: 22.96 MB / 0.563 GB, free: 10.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4596, allocations: 0 / 0.563 GB, free: 10.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.026e-05/0.4597, allocations: 16 kB / 0.5631 GB, free: 10.5 MB / 378.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.004115/0.4639, allocations: 1.566 MB / 0.5646 GB, free: 8.875 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.4639, allocations: 12.03 kB / 0.5646 GB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004018/0.4643, allocations: 147.2 kB / 0.5647 GB, free: 8.719 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/0.4669, allocations: 1.013 MB / 0.5657 GB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.4671, allocations: 224 kB / 0.5659 GB, free: 7.398 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001764/0.4673, allocations: 60.38 kB / 0.566 GB, free: 7.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002236/0.4696, allocations: 0.8323 MB / 0.5668 GB, free: 6.477 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.4696, allocations: 7.938 kB / 0.5668 GB, free: 6.469 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/0.4697, allocations: 24 kB / 0.5668 GB, free: 6.445 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.4698, allocations: 16 kB / 0.5669 GB, free: 6.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.4716, allocations: 0.6845 MB / 0.5675 GB, free: 5.746 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00817/0.4798, allocations: 3.69 MB / 0.5711 GB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002784/0.4826, allocations: 1.443 MB / 0.5725 GB, free: 332 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000871/0.4835, allocations: 0.5051 MB / 0.573 GB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.244e-05/0.4836, allocations: 24.89 kB / 0.5731 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009118/0.4845, allocations: 0.5476 MB / 0.5736 GB, free: 15.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=89): time 2.875e-06/0.4845, allocations: 7.938 kB / 0.5736 GB, free: 15.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=89): time 0.006455/0.491, allocations: 2.313 MB / 0.5759 GB, free: 12.88 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001615/0.4912, allocations: 278 kB / 0.5761 GB, free: 12.54 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003501/0.4947, allocations: 1.756 MB / 0.5778 GB, free: 10.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001522/0.4949, allocations: 41.7 kB / 0.5779 GB, free: 10.72 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004773/0.4954, allocations: 493.7 kB / 0.5784 GB, free: 10.23 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00035/0.4957, allocations: 291.8 kB / 0.5786 GB, free: 9.945 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.371e-05/0.4958, allocations: 16 kB / 0.5786 GB, free: 9.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.4959, allocations: 334 kB / 0.579 GB, free: 9.598 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007521/0.4967, allocations: 357.8 kB / 0.5793 GB, free: 9.246 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008462/0.4976, allocations: 490.8 kB / 0.5798 GB, free: 8.727 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005774/0.5033, allocations: 1.846 MB / 0.5816 GB, free: 6.859 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.5034, allocations: 3.938 kB / 0.5816 GB, free: 6.855 MB / 394.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.003276/0.5067, allocations: 1.333 MB / 0.5829 GB, free: 5.516 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.5067, allocations: 10.59 kB / 0.5829 GB, free: 5.508 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.5067, allocations: 4 kB / 0.5829 GB, free: 5.504 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001755/0.5085, allocations: 0.541 MB / 0.5834 GB, free: 4.961 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000439/0.5089, allocations: 111.8 kB / 0.5835 GB, free: 4.852 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001768/0.5107, allocations: 1.189 MB / 0.5847 GB, free: 3.633 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007569/0.5115, allocations: 87.41 kB / 0.5848 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-05/0.5116, allocations: 27.98 kB / 0.5848 GB, free: 3.52 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(start = bat.battery.SOC_start fixed = true ) "Charge as current integration" 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,$PRE.delay.y,brk4.BrkOpen,bat.ChargingMode,brk3.BrkOpen,delay.y) * Number of discrete states: 0 () * Number of clocked 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.0009619/0.5125, allocations: 460.1 kB / 0.5852 GB, free: 3.066 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003746/0.5129, allocations: 122.5 kB / 0.5854 GB, free: 2.945 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00268/0.5156, allocations: 1.327 MB / 0.5867 GB, free: 1.605 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.5156, allocations: 8 kB / 0.5867 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-05/0.5157, allocations: 4 kB / 0.5867 GB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.5157, allocations: 7.984 kB / 0.5867 GB, free: 1.586 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005146/0.5208, allocations: 3.115 MB / 0.5897 GB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.5209, allocations: 0 / 0.5897 GB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000405/0.5213, allocations: 103.9 kB / 0.5898 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001658/0.5229, allocations: 0.5318 MB / 0.5903 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.4e-05/0.523, allocations: 27.92 kB / 0.5904 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001583/0.5246, allocations: 1.162 MB / 0.5915 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.5246, allocations: 0 / 0.5915 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003213/0.5278, allocations: 1.82 MB / 0.5933 GB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004933/0.5283, allocations: 303.4 kB / 0.5936 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.5285, allocations: 20 kB / 0.5936 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005843/0.5291, allocations: 68.02 kB / 0.5936 GB, free: 10.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.5293, allocations: 76.81 kB / 0.5937 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.106e-05/0.5294, allocations: 24.11 kB / 0.5937 GB, free: 10.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001906/0.5313, allocations: 1.273 MB / 0.595 GB, free: 8.926 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5313, allocations: 0 / 0.595 GB, free: 8.926 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007758/0.5321, allocations: 255.7 kB / 0.5952 GB, free: 8.676 MB / 410.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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.0006853/0.5328, allocations: 308.5 kB / 0.5955 GB, free: 8.453 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002746/0.5355, allocations: 1.101 MB / 0.5966 GB, free: 7.352 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.5356, allocations: 7.938 kB / 0.5966 GB, free: 7.344 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001816/0.5374, allocations: 0.692 MB / 0.5973 GB, free: 6.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008268/0.5382, allocations: 120.4 kB / 0.5974 GB, free: 6.539 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004965/0.5432, allocations: 2.821 MB / 0.6001 GB, free: 3.695 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008178/0.544, allocations: 1.177 MB / 0.6013 GB, free: 2.492 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004783/0.5445, allocations: 175.2 kB / 0.6015 GB, free: 2.316 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002319/0.5448, allocations: 83.41 kB / 0.6015 GB, free: 2.238 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5448, allocations: 0 / 0.6015 GB, free: 2.238 MB / 410.7 MB Notification: Performance of Templates: time 0.02603/0.5708, allocations: 14.61 MB / 0.6158 GB, free: 3.648 MB / 426.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)