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: "" <> buildModelFMU(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 179.9 kB / 15.8 MB, free: 6.34 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.45/1.45, allocations: 223.2 MB / 239.7 MB, free: 64 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000938/0.0009382, allocations: 95.47 kB / 290.9 MB, free: 4.477 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05155/0.05155, allocations: 8.107 MB / 350.1 MB, free: 4.84 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003906/0.0003909, allocations: 12 kB / 413.2 MB, free: 5.699 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2635, allocations: 52.51 MB / 465.7 MB, free: 69.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.103/0.3665, allocations: 86.58 MB / 0.5393 GB, free: 14.92 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001938/0.3668, allocations: 71.97 kB / 0.5394 GB, free: 14.85 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2553/0.6221, allocations: 23.01 MB / 0.5619 GB, free: 84.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.6221, allocations: 0 / 0.5619 GB, free: 84.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.919e-05/0.6222, allocations: 19.59 kB / 0.5619 GB, free: 84.96 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.004245/0.6265, allocations: 1.591 MB / 0.5634 GB, free: 84.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.6265, allocations: 7.5 kB / 0.5634 GB, free: 84.08 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003085/0.6268, allocations: 109.7 kB / 0.5636 GB, free: 84.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004241/0.6273, allocations: 150.8 kB / 0.5637 GB, free: 83.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002014/0.6293, allocations: 0.9571 MB / 0.5646 GB, free: 83.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.6295, allocations: 221 kB / 0.5648 GB, free: 83.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.932e-05/0.6296, allocations: 65.44 kB / 0.5649 GB, free: 83.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.6309, allocations: 0.834 MB / 0.5657 GB, free: 83.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.631, allocations: 0 / 0.5657 GB, free: 83.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.635e-05/0.631, allocations: 27.53 kB / 0.5657 GB, free: 83.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.6311, allocations: 15 kB / 0.5658 GB, free: 83.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.6321, allocations: 0.6899 MB / 0.5664 GB, free: 83.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005019/0.6372, allocations: 3.694 MB / 0.57 GB, free: 81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001914/0.6391, allocations: 1.436 MB / 0.5714 GB, free: 80.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.723e-05/0.6392, allocations: 19.42 kB / 0.5715 GB, free: 80.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00077/0.64, allocations: 0.5054 MB / 0.572 GB, free: 79.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=89): time 2.625e-06/0.64, allocations: 0 / 0.572 GB, free: 79.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=89): time 0.006022/0.646, allocations: 2.321 MB / 0.5742 GB, free: 79.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.945e-05/0.6461, allocations: 251.5 kB / 0.5745 GB, free: 78.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002546/0.6487, allocations: 1.623 MB / 0.576 GB, free: 78.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.675e-05/0.6488, allocations: 41.17 kB / 0.5761 GB, free: 78.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004347/0.6492, allocations: 491.9 kB / 0.5766 GB, free: 77.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/0.6494, allocations: 297.6 kB / 0.5768 GB, free: 77.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.043e-05/0.6495, allocations: 15.88 kB / 0.5769 GB, free: 77.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.982e-05/0.6496, allocations: 333.4 kB / 0.5772 GB, free: 77.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005783/0.6502, allocations: 354.1 kB / 0.5775 GB, free: 77.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006592/0.6508, allocations: 493.8 kB / 0.578 GB, free: 76.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006174/0.6515, allocations: 382.8 kB / 0.5783 GB, free: 76.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.6515, allocations: 0 / 0.5783 GB, free: 76.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.002731/0.6542, allocations: 1.319 MB / 0.5796 GB, free: 75.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.6542, allocations: 8 kB / 0.5796 GB, free: 75.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.6543, allocations: 0 / 0.5796 GB, free: 75.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001705/0.656, allocations: 0.5483 MB / 0.5802 GB, free: 74.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000395/0.6564, allocations: 115.9 kB / 0.5803 GB, free: 74.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.6578, allocations: 1.216 MB / 0.5815 GB, free: 73.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000822/0.6586, allocations: 83.27 kB / 0.5816 GB, free: 73.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.707e-05/0.6587, allocations: 23.23 kB / 0.5816 GB, free: 73.26 MB / 378.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: 6 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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 23} Notification: Performance of prepare postOptimizeDAE: time 0.0008906/0.6596, allocations: 448 kB / 0.582 GB, free: 72.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003669/0.66, allocations: 130.4 kB / 0.5821 GB, free: 72.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002703/0.6627, allocations: 1.391 MB / 0.5835 GB, free: 71.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.6627, allocations: 19.03 kB / 0.5835 GB, free: 71.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.6627, allocations: 3.25 kB / 0.5835 GB, free: 71.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.6627, allocations: 3.234 kB / 0.5835 GB, free: 71.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004286/0.667, allocations: 2.832 MB / 0.5863 GB, free: 68.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.6671, allocations: 0 / 0.5863 GB, free: 68.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003697/0.6674, allocations: 99.88 kB / 0.5864 GB, free: 68.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001571/0.669, allocations: 0.538 MB / 0.5869 GB, free: 68.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.035e-05/0.6691, allocations: 19.98 kB / 0.5869 GB, free: 68.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.6704, allocations: 1.199 MB / 0.5881 GB, free: 66.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.6704, allocations: 0 / 0.5881 GB, free: 66.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002744/0.6732, allocations: 1.842 MB / 0.5899 GB, free: 64.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006133/0.6738, allocations: 303.4 kB / 0.5902 GB, free: 64.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.674, allocations: 16 kB / 0.5902 GB, free: 64.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000658/0.6747, allocations: 72.02 kB / 0.5903 GB, free: 64.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.6749, allocations: 64.89 kB / 0.5903 GB, free: 64.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.959e-05/0.6749, allocations: 31.98 kB / 0.5903 GB, free: 64.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0018/0.6767, allocations: 1.266 MB / 0.5916 GB, free: 63.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6768, allocations: 0 / 0.5916 GB, free: 63.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009006/0.6777, allocations: 255.7 kB / 0.5918 GB, free: 62.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.003426/0.6811, allocations: 2.592 MB / 0.5944 GB, free: 60.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.6835, allocations: 1.114 MB / 0.5954 GB, free: 59.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.6835, allocations: 4 kB / 0.5955 GB, free: 59.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001664/0.6852, allocations: 0.6917 MB / 0.5961 GB, free: 58.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006343/0.6859, allocations: 92.42 kB / 0.5962 GB, free: 58.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01602/0.7019, allocations: 9.998 MB / 0.606 GB, free: 48.22 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006441/0.7026, allocations: 1.193 MB / 0.6071 GB, free: 47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005882/0.7032, allocations: 179.2 kB / 0.6073 GB, free: 46.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006157/0.7038, allocations: 447.3 kB / 0.6077 GB, free: 46.39 MB / 378.7 MB Notification: Performance of SimCode: time 1.143e-06/0.7038, allocations: 4 kB / 0.6077 GB, free: 46.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04005/0.7439, allocations: 25.93 MB / 0.6331 GB, free: 20.64 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/0.7441, allocations: 257.8 kB / 0.6333 GB, free: 20.29 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.629/3.373, allocations: 0 / 0.6333 GB, free: 20.29 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)