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.001589/0.001588, allocations: 178.3 kB / 8.048 MB, free: 1.027 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.385/1.385, allocations: 221.5 MB / 230 MB, free: 7.57 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.0008166/0.0008166, allocations: 93.77 kB / 280.9 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04853/0.04853, allocations: 8.101 MB / 339.8 MB, free: 7 MB / 234.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 2.5e-05/2.492e-05, allocations: 5.812 kB / 398.6 MB, free: 49.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1029, allocations: 52.52 MB / 451.1 MB, free: 5.277 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3623/0.4653, allocations: 85.84 MB / 0.5243 GB, free: 80.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002049/0.4655, allocations: 62.56 kB / 0.5244 GB, free: 80.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07485/0.5404, allocations: 22.63 MB / 0.5465 GB, free: 70.53 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5404, allocations: 0 / 0.5465 GB, free: 70.53 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.412e-05/0.5405, allocations: 20 kB / 0.5465 GB, free: 70.51 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.003477/0.544, allocations: 1.325 MB / 0.5478 GB, free: 69.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.5441, allocations: 11.98 kB / 0.5478 GB, free: 69.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003867/0.5445, allocations: 146.5 kB / 0.548 GB, free: 68.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/0.5464, allocations: 0.9496 MB / 0.5489 GB, free: 68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001624/0.5466, allocations: 195.5 kB / 0.5491 GB, free: 67.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.5467, allocations: 43.86 kB / 0.5491 GB, free: 67.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001388/0.5481, allocations: 0.6001 MB / 0.5497 GB, free: 67.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.5497, allocations: 0.7004 MB / 0.5504 GB, free: 66.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.5498, allocations: 0 / 0.5504 GB, free: 66.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.14e-05/0.5499, allocations: 0 / 0.5504 GB, free: 66.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.186e-05/0.5499, allocations: 16 kB / 0.5504 GB, free: 66.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008096/0.558, allocations: 3.577 MB / 0.5539 GB, free: 62.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.5604, allocations: 1.305 MB / 0.5552 GB, free: 61.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008403/0.5613, allocations: 447.6 kB / 0.5556 GB, free: 60.83 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/0.5614, allocations: 20.69 kB / 0.5556 GB, free: 60.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009394/0.5624, allocations: 475.8 kB / 0.5561 GB, free: 60.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=87): time 4.308e-06/0.5624, allocations: 0 / 0.5561 GB, free: 60.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=87): time 0.003375/0.5658, allocations: 1.032 MB / 0.5571 GB, free: 59.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.982e-05/0.5659, allocations: 269.8 kB / 0.5573 GB, free: 58.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002923/0.5688, allocations: 1.567 MB / 0.5589 GB, free: 57.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.569, allocations: 29.7 kB / 0.5589 GB, free: 57.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005005/0.5695, allocations: 493.6 kB / 0.5594 GB, free: 56.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002588/0.5697, allocations: 279.8 kB / 0.5596 GB, free: 56.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-05/0.5698, allocations: 0 / 0.5596 GB, free: 56.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.733e-05/0.5699, allocations: 345.9 kB / 0.56 GB, free: 56.24 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005705/0.5705, allocations: 290.1 kB / 0.5602 GB, free: 55.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006969/0.5712, allocations: 427 kB / 0.5607 GB, free: 55.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.5726, allocations: 345.1 kB / 0.561 GB, free: 55.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.5726, allocations: 4 kB / 0.561 GB, free: 55.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.004081/0.5767, allocations: 1.176 MB / 0.5621 GB, free: 53.97 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.5767, allocations: 8 kB / 0.5621 GB, free: 53.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.5768, allocations: 7.938 kB / 0.5621 GB, free: 53.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002288/0.5791, allocations: 0.4942 MB / 0.5626 GB, free: 53.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006377/0.5797, allocations: 111.8 kB / 0.5627 GB, free: 53.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.5816, allocations: 1.186 MB / 0.5639 GB, free: 52.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.5826, allocations: 63.42 kB / 0.564 GB, free: 52.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.671e-05/0.5827, allocations: 27.98 kB / 0.564 GB, free: 52.04 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.0002853/0.583, allocations: 133.8 kB / 0.5641 GB, free: 51.91 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003077/0.5861, allocations: 1.038 MB / 0.5651 GB, free: 50.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002536/0.5864, allocations: 122.5 kB / 0.5652 GB, free: 50.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003659/0.5901, allocations: 1.182 MB / 0.5664 GB, free: 49.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.5901, allocations: 12 kB / 0.5664 GB, free: 49.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.5901, allocations: 3.984 kB / 0.5664 GB, free: 49.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.5901, allocations: 3.984 kB / 0.5664 GB, free: 49.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006158/0.5963, allocations: 2.888 MB / 0.5692 GB, free: 46.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.5963, allocations: 0 / 0.5692 GB, free: 46.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005882/0.5969, allocations: 103.8 kB / 0.5693 GB, free: 46.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002152/0.5991, allocations: 496.7 kB / 0.5698 GB, free: 46.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.697e-05/0.5992, allocations: 11.94 kB / 0.5698 GB, free: 46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00191/0.6011, allocations: 1.174 MB / 0.571 GB, free: 44.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/0.6012, allocations: 4.047 kB / 0.571 GB, free: 44.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003916/0.6051, allocations: 1.643 MB / 0.5726 GB, free: 43.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005986/0.6057, allocations: 303.4 kB / 0.5729 GB, free: 42.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002112/0.6059, allocations: 4 kB / 0.5729 GB, free: 42.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008247/0.6068, allocations: 52.02 kB / 0.5729 GB, free: 42.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.607, allocations: 76.61 kB / 0.573 GB, free: 42.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/0.607, allocations: 24 kB / 0.573 GB, free: 42.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002068/0.6091, allocations: 1.199 MB / 0.5742 GB, free: 41.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.6091, allocations: 0 / 0.5742 GB, free: 41.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001054/0.6102, allocations: 227.7 kB / 0.5744 GB, free: 41.24 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.00483/0.615, allocations: 2.42 MB / 0.5768 GB, free: 38.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003085/0.6181, allocations: 0.9566 MB / 0.5777 GB, free: 37.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.6182, allocations: 7.938 kB / 0.5777 GB, free: 37.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002368/0.6206, allocations: 0.6149 MB / 0.5783 GB, free: 37.26 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.6217, allocations: 83.02 kB / 0.5784 GB, free: 37.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006304/0.628, allocations: 2.161 MB / 0.5805 GB, free: 34.97 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008617/0.6289, allocations: 1.197 MB / 0.5817 GB, free: 33.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007684/0.6297, allocations: 183.2 kB / 0.5818 GB, free: 33.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007645/0.6305, allocations: 443.3 kB / 0.5823 GB, free: 33.13 MB / 362.7 MB Notification: Performance of SimCode: time 1.213e-06/0.6305, allocations: 0 / 0.5823 GB, free: 33.13 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04226/0.6727, allocations: 23.12 MB / 0.6048 GB, free: 10.02 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001544/0.6729, allocations: 173.8 kB / 0.605 GB, free: 9.828 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.586/3.259, allocations: 0 / 0.605 GB, free: 9.828 MB / 362.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)