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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 186.9 kB / 7.846 MB, free: 2.512 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.188/1.188, allocations: 221.4 MB / 229.6 MB, free: 3.086 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.0009963/0.0009963, allocations: 93.5 kB / 280.5 MB, free: 15.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0392/0.0392, allocations: 8.099 MB / 339.4 MB, free: 5.023 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1938/0.2331, allocations: 58.62 MB / 398 MB, free: 66.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07603/0.3091, allocations: 52.52 MB / 450.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2728/0.5819, allocations: 86.14 MB / 0.5241 GB, free: 5.449 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.5822, allocations: 60.23 kB / 0.5241 GB, free: 5.426 MB / 346.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.06014/0.6424, allocations: 23.62 MB / 0.5472 GB, free: 2.285 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.6424, allocations: 11.94 kB / 0.5472 GB, free: 2.273 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006696/0.6431, allocations: 146.3 kB / 0.5474 GB, free: 2.129 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002405/0.6455, allocations: 0.9533 MB / 0.5483 GB, free: 1.324 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002484/0.6458, allocations: 199.2 kB / 0.5485 GB, free: 1.098 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/0.646, allocations: 39.94 kB / 0.5485 GB, free: 1.059 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001095/0.6471, allocations: 0.595 MB / 0.5491 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.6483, allocations: 0.701 MB / 0.5498 GB, free: 212 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.6484, allocations: 4 kB / 0.5498 GB, free: 208 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.046e-05/0.6484, allocations: 0 / 0.5498 GB, free: 208 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.6485, allocations: 16 kB / 0.5498 GB, free: 192 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005584/0.6541, allocations: 3.59 MB / 0.5533 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006099/0.6547, allocations: 434.9 kB / 0.5537 GB, free: 13.24 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000646/0.6553, allocations: 444.8 kB / 0.5541 GB, free: 12.99 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.456e-05/0.6555, allocations: 24.75 kB / 0.5542 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007164/0.6562, allocations: 482.2 kB / 0.5546 GB, free: 12.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 2.595e-06/0.6562, allocations: 0 / 0.5546 GB, free: 12.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.002428/0.6586, allocations: 1.053 MB / 0.5557 GB, free: 11.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.6588, allocations: 277.5 kB / 0.5559 GB, free: 11.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002083/0.6609, allocations: 1.558 MB / 0.5574 GB, free: 10.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.279e-05/0.661, allocations: 25.7 kB / 0.5575 GB, free: 10.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.6612, allocations: 297.6 kB / 0.5577 GB, free: 9.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/0.6615, allocations: 267.9 kB / 0.558 GB, free: 9.555 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-05/0.6615, allocations: 0 / 0.558 GB, free: 9.555 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.6616, allocations: 341.8 kB / 0.5583 GB, free: 9.215 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004699/0.6621, allocations: 301.5 kB / 0.5586 GB, free: 8.922 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005785/0.6627, allocations: 428.7 kB / 0.559 GB, free: 8.461 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.6637, allocations: 369.1 kB / 0.5594 GB, free: 8.102 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.6638, allocations: 0 / 0.5594 GB, free: 8.102 MB / 378.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.003048/0.6668, allocations: 1.205 MB / 0.5606 GB, free: 6.887 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.6668, allocations: 4.938 kB / 0.5606 GB, free: 6.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.6669, allocations: 3.938 kB / 0.5606 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001718/0.6686, allocations: 0.4987 MB / 0.561 GB, free: 6.379 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004598/0.6691, allocations: 107.9 kB / 0.5612 GB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001686/0.6707, allocations: 1.211 MB / 0.5623 GB, free: 5.031 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007506/0.6715, allocations: 75.41 kB / 0.5624 GB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.058e-05/0.6716, allocations: 27.98 kB / 0.5624 GB, free: 4.93 MB / 378.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.0002858/0.6719, allocations: 131.3 kB / 0.5626 GB, free: 4.797 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.6721, allocations: 122.4 kB / 0.5627 GB, free: 4.676 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002762/0.6749, allocations: 1.196 MB / 0.5638 GB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/0.6749, allocations: 11.98 kB / 0.5639 GB, free: 3.457 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.6749, allocations: 0 / 0.5639 GB, free: 3.457 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.6749, allocations: 7.984 kB / 0.5639 GB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004672/0.6796, allocations: 2.881 MB / 0.5667 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.6796, allocations: 0 / 0.5667 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004507/0.6801, allocations: 107.8 kB / 0.5668 GB, free: 420 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001668/0.6818, allocations: 492.5 kB / 0.5672 GB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.188e-05/0.6818, allocations: 11.92 kB / 0.5673 GB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/0.6836, allocations: 1.209 MB / 0.5684 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.6836, allocations: 3.938 kB / 0.5684 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003347/0.6869, allocations: 1.658 MB / 0.5701 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003998/0.691, allocations: 2.531 MB / 0.5725 GB, free: 10.42 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004738/0.6914, allocations: 303.3 kB / 0.5728 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001754/0.6916, allocations: 3.984 kB / 0.5728 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006222/0.6923, allocations: 52.03 kB / 0.5729 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/0.6925, allocations: 72.66 kB / 0.5729 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.427e-05/0.6925, allocations: 27.98 kB / 0.573 GB, free: 9.953 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001783/0.6943, allocations: 1.192 MB / 0.5741 GB, free: 8.754 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001326/0.6957, allocations: 231.7 kB / 0.5744 GB, free: 8.527 MB / 394.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.000686/0.6964, allocations: 243.2 kB / 0.5746 GB, free: 8.328 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.6989, allocations: 0.988 MB / 0.5756 GB, free: 7.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.6989, allocations: 0 / 0.5756 GB, free: 7.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.7007, allocations: 0.638 MB / 0.5762 GB, free: 6.703 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006805/0.7014, allocations: 80.42 kB / 0.5763 GB, free: 6.621 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004263/0.7057, allocations: 1.944 MB / 0.5782 GB, free: 4.633 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/0.7068, allocations: 1.292 MB / 0.5794 GB, free: 3.316 MB / 394.7 MB Notification: Performance of SimCode: time 7.01e-07/0.7068, allocations: 0 / 0.5794 GB, free: 3.316 MB / 394.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)