Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.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.Tests.VoltageRegulation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Tests.VoltageRegulation1") translateModel(PowerSysPro.Tests.VoltageRegulation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Tests.VoltageRegulation1") [: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.001524/0.001524, allocations: 194 kB / 7.845 MB, free: 2.48 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.338/1.338, allocations: 221.4 MB / 229.7 MB, free: 3 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.0009824/0.0009824, allocations: 86.78 kB / 280.5 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03822/0.03822, allocations: 8.091 MB / 339.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.641e-06/5.661e-06, allocations: 0 / 397.9 MB, free: 68.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08422/0.08424, allocations: 52.51 MB / 450.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2642/0.3485, allocations: 77.85 MB / 0.5159 GB, free: 340 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/0.3488, allocations: 56.47 kB / 0.5159 GB, free: 312 kB / 330.7 MB Notification: Performance of FrontEnd: time 0.01315/0.3619, allocations: 4.296 MB / 0.5201 GB, free: 12.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.362, allocations: 4 kB / 0.5201 GB, free: 12.61 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005697/0.3626, allocations: 0.6026 MB / 0.5207 GB, free: 11.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3626, allocations: 11.97 kB / 0.5207 GB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.381e-05/0.3627, allocations: 43.52 kB / 0.5208 GB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006795/0.3634, allocations: 382.3 kB / 0.5211 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.3634, allocations: 4 kB / 0.5211 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.3634, allocations: 4 kB / 0.5211 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002119/0.3637, allocations: 128.5 kB / 0.5213 GB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.3639, allocations: 205.3 kB / 0.5215 GB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.364, allocations: 4 kB / 0.5215 GB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.364, allocations: 0 / 0.5215 GB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.364, allocations: 0 / 0.5215 GB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009747/0.365, allocations: 0.5181 MB / 0.522 GB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001965/0.3652, allocations: 170.5 kB / 0.5221 GB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.3654, allocations: 164.7 kB / 0.5223 GB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.387e-06/0.3654, allocations: 4 kB / 0.5223 GB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003184/0.3657, allocations: 363.9 kB / 0.5226 GB, free: 10.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.543e-06/0.3657, allocations: 0 / 0.5226 GB, free: 10.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005587/0.3663, allocations: 355.1 kB / 0.523 GB, free: 9.863 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.064e-05/0.3664, allocations: 217.4 kB / 0.5232 GB, free: 9.605 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004924/0.3669, allocations: 498.5 kB / 0.5237 GB, free: 9.191 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.3669, allocations: 33.64 kB / 0.5237 GB, free: 9.152 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.462e-05/0.367, allocations: 127.2 kB / 0.5238 GB, free: 9.039 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.009e-05/0.367, allocations: 42.16 kB / 0.5238 GB, free: 9.004 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.493e-05/0.3671, allocations: 4 kB / 0.5238 GB, free: 9 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.3672, allocations: 353.1 kB / 0.5242 GB, free: 8.664 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.3673, allocations: 127.2 kB / 0.5243 GB, free: 8.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.3675, allocations: 145.7 kB / 0.5244 GB, free: 8.453 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.3677, allocations: 125.2 kB / 0.5246 GB, free: 8.359 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3677, allocations: 4.031 kB / 0.5246 GB, free: 8.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004602/0.3682, allocations: 356.8 kB / 0.5249 GB, free: 8.055 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.3682, allocations: 7.125 kB / 0.5249 GB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3682, allocations: 0 / 0.5249 GB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.3682, allocations: 4 kB / 0.5249 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.775e-05/0.3683, allocations: 15.36 kB / 0.5249 GB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.3683, allocations: 0 / 0.5249 GB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002967/0.3686, allocations: 43.97 kB / 0.525 GB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.8e-05/0.3687, allocations: 23.89 kB / 0.525 GB, free: 7.969 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: tapChanger.furtherTapChangeTimeout:DISCRETE(start = tapChanger.nextTapChangeTimeout unit = "s" fixed = false protected = true ) "Time lag between the first change and the following tap" type: Real tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = false protected = true ) "Time when the signal U went out its normal range" type: Real tapChanger.tap:DISCRETE(start = tapChanger.startTap fixed = false ) "Current tap position" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,$PRE.voltage.nextEvent,voltage.nextEvent,voltage.nextEventScaled,$PRE.tapChanger.tap,tapChanger.tap,$PRE.tapChanger.abnormalUTime,tapChanger.abnormalUTime,tapChanger.normalU,tapChanger.decreaseEvent,tapChanger.increaseEvent,$PRE.tapChanger.furtherTapChangeTimeout,tapChanger.furtherTapChangeTimeout) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 2 * 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.0001991/0.3689, allocations: 198.8 kB / 0.5252 GB, free: 7.758 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.566e-05/0.369, allocations: 43.53 kB / 0.5252 GB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.354e-05/0.369, allocations: 46.55 kB / 0.5253 GB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3691, allocations: 4 kB / 0.5253 GB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.3691, allocations: 0 / 0.5253 GB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3691, allocations: 4 kB / 0.5253 GB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.3693, allocations: 339.8 kB / 0.5256 GB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3693, allocations: 0 / 0.5256 GB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.244e-05/0.3694, allocations: 4 kB / 0.5256 GB, free: 7.348 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.3694, allocations: 4.031 kB / 0.5256 GB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.3694, allocations: 15.42 kB / 0.5256 GB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3694, allocations: 0 / 0.5256 GB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3694, allocations: 4 kB / 0.5256 GB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005487/0.37, allocations: 420.8 kB / 0.526 GB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003973/0.3704, allocations: 193.2 kB / 0.5262 GB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.892e-05/0.3705, allocations: 15.47 kB / 0.5262 GB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003101/0.3708, allocations: 59.95 kB / 0.5263 GB, free: 6.703 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.574e-05/0.3709, allocations: 26.95 kB / 0.5263 GB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.006e-05/0.371, allocations: 20.11 kB / 0.5263 GB, free: 6.668 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0003564/0.3713, allocations: 403.7 kB / 0.5267 GB, free: 6.344 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003225/0.3717, allocations: 68.12 kB / 0.5268 GB, free: 6.277 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,voltage.nextEvent,voltage.nextEventScaled,tapChanger.tap,tapChanger.abnormalUTime,tapChanger.normalU,tapChanger.decreaseEvent,tapChanger.increaseEvent,tapChanger.furtherTapChangeTimeout) * Number of discrete states: 16 (tapChanger.tap,tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,tapChanger.decreaseEvent,tapChanger.increaseEvent,tapChanger.normalU,voltage.nextEvent,voltage.last,voltage.nextEventScaled,voltage.b,voltage.a,$whenCondition5) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 2 * 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.0002207/0.3719, allocations: 138.3 kB / 0.5269 GB, free: 6.137 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003411/0.3722, allocations: 309.4 kB / 0.5272 GB, free: 5.906 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3722, allocations: 3.938 kB / 0.5272 GB, free: 5.902 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.3726, allocations: 376.9 kB / 0.5276 GB, free: 5.699 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.3728, allocations: 24.84 kB / 0.5276 GB, free: 5.688 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008378/0.3737, allocations: 0.5429 MB / 0.5281 GB, free: 5.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003527/0.3741, allocations: 0.8296 MB / 0.5289 GB, free: 4.309 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3741, allocations: 0 / 0.5289 GB, free: 4.309 MB / 346.7 MB Notification: Performance of Templates: time 0.006272/0.3803, allocations: 2.97 MB / 0.5318 GB, free: 1.379 MB / 346.7 MB make -j1 -f PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.makefile (rm -f PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe ; mkfifo PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe >> ../files/PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.sim & ./PowerSysPro_PowerSysPro.Tests.VoltageRegulation1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe 2>&1)