Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.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.Examples.VariableTransformers.VariableTransformer2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2") translateModel(PowerSysPro.Examples.VariableTransformers.VariableTransformer2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2") [: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.001048/0.001048, allocations: 190.6 kB / 7.843 MB, free: 2.473 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.349/1.349, 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.001192/0.001192, allocations: 95.02 kB / 280.5 MB, free: 1.219 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03613/0.03613, allocations: 8.098 MB / 339.4 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.414e-06/7.434e-06, allocations: 0 / 397.9 MB, free: 68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.075/0.07502, allocations: 52.53 MB / 450.4 MB, free: 15.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2645/0.3396, allocations: 79.96 MB / 0.518 GB, free: 14.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.3399, allocations: 67.16 kB / 0.518 GB, free: 14.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02427/0.3642, allocations: 8.561 MB / 0.5264 GB, free: 7.422 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.837e-05/0.3642, allocations: 7.938 kB / 0.5264 GB, free: 7.414 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.002148/0.3664, allocations: 0.7457 MB / 0.5271 GB, free: 6.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.3664, allocations: 12.72 kB / 0.5271 GB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.345e-05/0.3665, allocations: 35.62 kB / 0.5272 GB, free: 6.613 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004448/0.367, allocations: 283 kB / 0.5274 GB, free: 6.332 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/0.367, allocations: 8 kB / 0.5274 GB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.912e-05/0.3671, allocations: 15.38 kB / 0.5275 GB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004175/0.3676, allocations: 239.6 kB / 0.5277 GB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00046/0.368, allocations: 291.4 kB / 0.528 GB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.368, allocations: 4 kB / 0.528 GB, free: 5.965 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/0.3681, allocations: 3.938 kB / 0.528 GB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.3681, allocations: 4 kB / 0.528 GB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.37, allocations: 1.149 MB / 0.5291 GB, free: 4.953 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.3703, allocations: 176.8 kB / 0.5293 GB, free: 4.855 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.3705, allocations: 169.7 kB / 0.5294 GB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.846e-05/0.3705, allocations: 4 kB / 0.5294 GB, free: 4.766 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003858/0.3709, allocations: 325.4 kB / 0.5297 GB, free: 4.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 2.154e-06/0.3709, allocations: 0 / 0.5297 GB, free: 4.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.001543/0.3725, allocations: 0.5685 MB / 0.5303 GB, free: 4.086 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.3726, allocations: 216.5 kB / 0.5305 GB, free: 3.828 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002304/0.3729, allocations: 214.8 kB / 0.5307 GB, free: 3.648 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.3729, allocations: 29.69 kB / 0.5307 GB, free: 3.613 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.907e-05/0.373, allocations: 122.4 kB / 0.5308 GB, free: 3.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.607e-05/0.3731, allocations: 103.9 kB / 0.5309 GB, free: 3.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.626e-05/0.3731, allocations: 0 / 0.5309 GB, free: 3.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.3732, allocations: 340.9 kB / 0.5313 GB, free: 3.082 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.3734, allocations: 105.9 kB / 0.5314 GB, free: 3.027 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.3737, allocations: 192.5 kB / 0.5316 GB, free: 2.867 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003121/0.374, allocations: 133.9 kB / 0.5317 GB, free: 2.785 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.374, allocations: 0 / 0.5317 GB, free: 2.785 MB / 346.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001589/0.3756, allocations: 0.5605 MB / 0.5322 GB, free: 2.355 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.3756, allocations: 4 kB / 0.5322 GB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3756, allocations: 4 kB / 0.5322 GB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001641/0.3773, allocations: 342.9 kB / 0.5326 GB, free: 2.043 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002488/0.3775, allocations: 51.34 kB / 0.5326 GB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/0.3797, allocations: 2.038 MB / 0.5346 GB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004607/0.3801, allocations: 67.81 kB / 0.5347 GB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.3802, allocations: 19.69 kB / 0.5347 GB, free: 15.89 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: varTra.tapChanger.furtherTapChangeTimeout:DISCRETE(start = varTra.tapChanger.nextTapChangeTimeout unit = "s" fixed = false protected = true ) "Time lag between the first change and the following tap" type: Real varTra.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = false protected = true ) "Time when the signal U went out its normal range" type: Real varTra.tapChanger.tap:DISCRETE(start = varTra.tapChanger.startTap fixed = false ) "Current tap position" type: Integer slackBusRamp.U:VARIABLE(start = slackBusRamp.UNom unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.varTra.tapChanger.tap,varTra.tapChanger.tap,$PRE.varTra.tapChanger.abnormalUTime,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,$PRE.varTra.tapChanger.furtherTapChangeTimeout,varTra.tapChanger.furtherTapChangeTimeout) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002925/0.3805, allocations: 173.3 kB / 0.5349 GB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.274e-05/0.3806, allocations: 31.62 kB / 0.5349 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001588/0.3822, allocations: 0.7334 MB / 0.5356 GB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.3822, allocations: 4 kB / 0.5356 GB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3822, allocations: 0 / 0.5356 GB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3822, allocations: 0 / 0.5356 GB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004724/0.3827, allocations: 428.7 kB / 0.536 GB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3827, allocations: 0 / 0.536 GB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002123/0.3829, allocations: 35.97 kB / 0.536 GB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001642/0.3846, allocations: 393.1 kB / 0.5364 GB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.323e-05/0.3847, allocations: 15.36 kB / 0.5364 GB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002323/0.387, allocations: 2.147 MB / 0.5385 GB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.387, allocations: 0 / 0.5385 GB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001803/0.3888, allocations: 0.9315 MB / 0.5394 GB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002374/0.3891, allocations: 159.5 kB / 0.5396 GB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.408e-05/0.3892, allocations: 15.38 kB / 0.5396 GB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004614/0.3896, allocations: 68 kB / 0.5397 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.3898, allocations: 36.58 kB / 0.5397 GB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.093e-05/0.3898, allocations: 15.92 kB / 0.5397 GB, free: 11.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000192/0.39, allocations: 175.8 kB / 0.5399 GB, free: 11.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004744/0.3905, allocations: 87.86 kB / 0.54 GB, free: 11.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (slackBusRamp.U) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,varTra.tapChanger.tap,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.furtherTapChangeTimeout) * Number of discrete states: 10 (varTra.tapChanger.tap,varTra.tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,varTra.tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.normalU) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002799/0.3908, allocations: 136.2 kB / 0.5401 GB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.3918, allocations: 0.4889 MB / 0.5406 GB, free: 10.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3919, allocations: 0 / 0.5406 GB, free: 10.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008134/0.3927, allocations: 499 kB / 0.5411 GB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.3929, allocations: 24.38 kB / 0.5411 GB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009422/0.3939, allocations: 414.9 kB / 0.5415 GB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005163/0.3944, allocations: 0.7991 MB / 0.5423 GB, free: 9.32 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3944, allocations: 0 / 0.5423 GB, free: 9.32 MB / 362.7 MB Notification: Performance of Templates: time 0.01041/0.4048, allocations: 5.271 MB / 0.5474 GB, free: 4.109 MB / 362.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.makefile (rm -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.sim & ./PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.pipe 2>&1)