Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") [: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.001455/0.001455, allocations: 194.6 kB / 7.847 MB, free: 2.508 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.235/1.235, allocations: 221.4 MB / 229.7 MB, free: 3.246 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.0008899/0.0008899, allocations: 94.27 kB / 280.5 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03471/0.03471, allocations: 8.102 MB / 339.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.43e-06/5.46e-06, allocations: 0 / 397.9 MB, free: 67.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08636/0.08638, allocations: 52.52 MB / 450.4 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2549/0.3413, allocations: 85.75 MB / 0.5236 GB, free: 8.391 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.3416, allocations: 61.66 kB / 0.5237 GB, free: 8.359 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03569/0.3773, allocations: 12.63 MB / 0.536 GB, free: 13.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.183e-05/0.3774, allocations: 12 kB / 0.536 GB, free: 13.86 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001703/0.3791, allocations: 0.9025 MB / 0.5369 GB, free: 12.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.3791, allocations: 15.97 kB / 0.5369 GB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.3793, allocations: 55.34 kB / 0.537 GB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009627/0.3802, allocations: 0.532 MB / 0.5375 GB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.3803, allocations: 15.98 kB / 0.5375 GB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.482e-05/0.3803, allocations: 15.91 kB / 0.5375 GB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003933/0.3807, allocations: 220.4 kB / 0.5377 GB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004991/0.3812, allocations: 343.1 kB / 0.538 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.3813, allocations: 0 / 0.538 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.1e-05/0.3813, allocations: 0 / 0.538 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.3813, allocations: 11.94 kB / 0.5381 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/0.3836, allocations: 1.493 MB / 0.5395 GB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.3839, allocations: 119.9 kB / 0.5396 GB, free: 10.51 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.3841, allocations: 94.2 kB / 0.5397 GB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.555e-05/0.3841, allocations: 7.922 kB / 0.5397 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.3841, allocations: 41.81 kB / 0.5398 GB, free: 10.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.3842, allocations: 0 / 0.5398 GB, free: 10.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.00335/0.3875, allocations: 1.046 MB / 0.5408 GB, free: 9.371 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.149e-05/0.3876, allocations: 213.4 kB / 0.541 GB, free: 9.117 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006358/0.3883, allocations: 491.7 kB / 0.5415 GB, free: 8.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.3883, allocations: 25.7 kB / 0.5415 GB, free: 8.727 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.3884, allocations: 197.2 kB / 0.5417 GB, free: 8.547 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.359e-05/0.3885, allocations: 42.95 kB / 0.5417 GB, free: 8.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.388e-05/0.3885, allocations: 0 / 0.5417 GB, free: 8.512 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.3886, allocations: 355.3 kB / 0.542 GB, free: 8.172 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.3888, allocations: 75.94 kB / 0.5421 GB, free: 8.121 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/0.389, allocations: 200.3 kB / 0.5423 GB, free: 7.906 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003013/0.392, allocations: 0.935 MB / 0.5432 GB, free: 7.004 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.3921, allocations: 0 / 0.5432 GB, free: 7.004 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.003286/0.3954, allocations: 1.108 MB / 0.5443 GB, free: 5.941 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.3954, allocations: 8 kB / 0.5443 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.3954, allocations: 0 / 0.5443 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.3954, allocations: 4 kB / 0.5443 GB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.3957, allocations: 52.28 kB / 0.5444 GB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.3957, allocations: 7.938 kB / 0.5444 GB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007071/0.3964, allocations: 143.6 kB / 0.5445 GB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.185e-05/0.3965, allocations: 15.81 kB / 0.5445 GB, free: 5.719 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001329/0.3966, allocations: 117.8 kB / 0.5446 GB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.3968, allocations: 43.44 kB / 0.5447 GB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00346/0.4002, allocations: 1.088 MB / 0.5457 GB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.4003, allocations: 8 kB / 0.5458 GB, free: 4.516 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.4003, allocations: 0 / 0.5458 GB, free: 4.516 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.4003, allocations: 0 / 0.5458 GB, free: 4.516 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00397/0.4043, allocations: 1.554 MB / 0.5473 GB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4043, allocations: 0 / 0.5473 GB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001907/0.4045, allocations: 31.92 kB / 0.5473 GB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.4045, allocations: 0 / 0.5473 GB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.4045, allocations: 0 / 0.5473 GB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.4045, allocations: 0 / 0.5473 GB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.4045, allocations: 8.031 kB / 0.5473 GB, free: 3.023 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003481/0.408, allocations: 1.289 MB / 0.5486 GB, free: 1.801 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002653/0.4083, allocations: 192.7 kB / 0.5488 GB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.396e-05/0.4084, allocations: 3.906 kB / 0.5488 GB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000715/0.4091, allocations: 151.9 kB / 0.5489 GB, free: 1.453 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002525/0.4094, allocations: 98.39 kB / 0.549 GB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.811e-05/0.4094, allocations: 8 kB / 0.549 GB, free: 1.359 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0004501/0.4099, allocations: 388.2 kB / 0.5494 GB, free: 1.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004723/0.4104, allocations: 106.6 kB / 0.5495 GB, free: 0.9883 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006657/0.411, allocations: 317.2 kB / 0.5498 GB, free: 0.7461 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003791/0.4114, allocations: 188.7 kB / 0.55 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4114, allocations: 0.625 kB / 0.55 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.4117, allocations: 133.1 kB / 0.5501 GB, free: 0.5117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004961/0.4122, allocations: 80.62 kB / 0.5502 GB, free: 460 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.4138, allocations: 0.6128 MB / 0.5508 GB, free: 15.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005513/0.4143, allocations: 0.8729 MB / 0.5516 GB, free: 14.97 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4143, allocations: 0 / 0.5516 GB, free: 14.97 MB / 378.7 MB Notification: Performance of Templates: time 0.01117/0.4255, allocations: 6.016 MB / 0.5575 GB, free: 9.004 MB / 378.7 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)