Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.conf.json 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/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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSysPro.Examples.VariableTransformers.WithVariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad") translateModel(PowerSysPro.Examples.VariableTransformers.WithVariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001263, allocations: 107.4 kB / 17.07 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 196 kB / 18.01 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05726/0.05726, allocations: 8.093 MB / 300 MB, free: 6.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002426/0.002426, allocations: 55.91 kB / 363.2 MB, free: 7.387 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2487, allocations: 51.51 MB / 414.7 MB, free: 25.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.WithVariableLoad): time 0.003218/0.252, allocations: 3.205 MB / 417.9 MB, free: 22.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.2534, allocations: 1.102 MB / 419 MB, free: 21.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.2536, allocations: 4 kB / 419 MB, free: 21.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003492/0.2539, allocations: 174.9 kB / 419.2 MB, free: 20.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004895/0.2544, allocations: 258.4 kB / 419.4 MB, free: 20.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001655/0.2561, allocations: 1.275 MB / 420.7 MB, free: 19.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004696/0.2566, allocations: 0.5214 MB / 421.2 MB, free: 18.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/0.2568, allocations: 133.8 kB / 421.3 MB, free: 18.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.2569, allocations: 215.2 kB / 421.6 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/0.2571, allocations: 247 kB / 421.8 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.011e-05/0.2572, allocations: 48 kB / 421.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003668/0.2576, allocations: 315.7 kB / 422.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.033e-05/0.2576, allocations: 83.62 kB / 422.2 MB, free: 17.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.2578, allocations: 230.9 kB / 422.5 MB, free: 17.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005135/0.2583, allocations: 0.6893 MB / 423.1 MB, free: 16.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.2583, allocations: 0 / 423.1 MB, free: 16.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2583, allocations: 0 / 423.1 MB, free: 16.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.2583, allocations: 0 / 423.1 MB, free: 16.93 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.003908/0.2623, allocations: 1.315 MB / 424.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.2623, allocations: 15.89 kB / 424.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.2624, allocations: 44.47 kB / 424.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003396/0.2628, allocations: 355.3 kB / 424.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.46e-05/0.2628, allocations: 54.83 kB / 424.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.809e-05/0.2629, allocations: 32.38 kB / 425 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007254/0.2636, allocations: 484.8 kB / 425.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.2636, allocations: 0 / 425.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/0.2637, allocations: 12 kB / 425.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.2637, allocations: 8 kB / 425.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007092/0.2644, allocations: 465.9 kB / 425.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002244/0.2667, allocations: 1.976 MB / 427.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000951/0.2676, allocations: 0.5535 MB / 428.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004466/0.2681, allocations: 333.5 kB / 428.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/0.2682, allocations: 93.42 kB / 428.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007276/0.269, allocations: 0.537 MB / 429.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 1.843e-06/0.269, allocations: 0 / 429.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=51): time 0.005221/0.2742, allocations: 1.892 MB / 431.3 MB, free: 8.418 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.2743, allocations: 195.9 kB / 431.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.2746, allocations: 324.4 kB / 431.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.401e-05/0.2746, allocations: 37.7 kB / 431.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.2747, allocations: 176.9 kB / 432 MB, free: 7.629 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.402e-05/0.2748, allocations: 157.7 kB / 432.2 MB, free: 7.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.2749, allocations: 110.2 kB / 432.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.125e-05/0.275, allocations: 350.7 kB / 432.6 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004008/0.2754, allocations: 289.1 kB / 432.9 MB, free: 6.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004195/0.2759, allocations: 346 kB / 433.2 MB, free: 6.379 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007126/0.283, allocations: 2.157 MB / 435.4 MB, free: 4.188 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.283, allocations: 0 / 435.4 MB, free: 4.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003035/0.2861, allocations: 1.297 MB / 436.7 MB, free: 2.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.699e-05/0.2861, allocations: 48.19 kB / 436.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.2861, allocations: 0 / 436.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003314/0.2894, allocations: 0.8643 MB / 437.6 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002651/0.2897, allocations: 75.89 kB / 437.7 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.2912, allocations: 1.266 MB / 438.9 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005285/0.2917, allocations: 87.55 kB / 439 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.818e-05/0.2918, allocations: 19.98 kB / 439 MB, free: 488 kB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: varTra.tapChanger.tap:DISCRETE(start = varTra.tapChanger.startTap fixed = true ) "Current tap position" type: Integer varTra.tapChanger.furtherTapChangeTimeout:DISCRETE(start = varTra.tapChanger.nextTapChangeTimeout unit = "s" fixed = true protected = true ) "Time lag between the first change and the following tap" type: Real varTra.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = true protected = true ) "Time when the signal U went out its normal range" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.varTra.tapChanger.tap,$PRE.varTra.tapChanger.furtherTapChangeTimeout,$PRE.varTra.tapChanger.abnormalUTime,varLoad.degradedMode,$PRE.varLoad.degradedMode,varTra.tapChanger.furtherTapChangeTimeout,varTra.tapChanger.increaseEvent,varTra.tapChanger.decreaseEvent,varTra.tapChanger.normalU,varTra.tapChanger.abnormalUTime,varTra.tapChanger.tap,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003049/0.2921, allocations: 234.5 kB / 439.3 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.46e-05/0.2922, allocations: 43.53 kB / 439.3 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002028/0.2942, allocations: 1.232 MB / 440.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.2942, allocations: 4 kB / 440.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.2942, allocations: 3.984 kB / 440.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2942, allocations: 4 kB / 440.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006175/0.2949, allocations: 0.6306 MB / 441.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2949, allocations: 0 / 441.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001788/0.2951, allocations: 47.91 kB / 441.2 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0036/0.2987, allocations: 0.9078 MB / 442.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.813e-05/0.2987, allocations: 19.98 kB / 442.2 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002028/0.3008, allocations: 1.401 MB / 443.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3008, allocations: 0 / 443.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.3027, allocations: 1.186 MB / 444.7 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.303, allocations: 200.4 kB / 444.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.512e-05/0.3031, allocations: 24 kB / 445 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004847/0.3036, allocations: 59.94 kB / 445 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.3037, allocations: 48.38 kB / 445.1 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-05/0.3038, allocations: 23.98 kB / 445.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002638/0.3041, allocations: 231 kB / 445.3 MB, free: 10.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3041, allocations: 0 / 445.3 MB, free: 10.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004869/0.3046, allocations: 139.9 kB / 445.4 MB, free: 9.883 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,varTra.tapChanger.tap,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.furtherTapChangeTimeout,varLoad.degradedMode) * Number of discrete states: 11 (varTra.tapChanger.tap,varTra.tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,varTra.tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.normalU,varLoad.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002826/0.3048, allocations: 151.5 kB / 445.6 MB, free: 9.723 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001984/0.3068, allocations: 0.9247 MB / 446.5 MB, free: 8.785 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3069, allocations: 3.938 kB / 446.5 MB, free: 8.781 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.3082, allocations: 0.6763 MB / 447.2 MB, free: 8.094 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.3085, allocations: 49.02 kB / 447.2 MB, free: 8.047 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.31, allocations: 0.8159 MB / 448.1 MB, free: 7.207 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000367/0.3104, allocations: 0.8084 MB / 448.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001398/0.3105, allocations: 47.38 kB / 448.9 MB, free: 6.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.031e-05/0.3106, allocations: 39.42 kB / 449 MB, free: 6.285 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3106, allocations: 0 / 449 MB, free: 6.285 MB / 318.1 MB Notification: Performance of Templates: time 0.0153/0.3259, allocations: 10.54 MB / 459.5 MB, free: 11.8 MB / 334.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.sim & ./PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.pipe 2>&1)