Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.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.VariableTransformer1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1") translateModel(PowerSysPro.Examples.VariableTransformers.VariableTransformer1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 111.8 kB / 16.69 MB, free: 6.348 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.001773/0.001773, allocations: 199.7 kB / 17.61 MB, free: 5.758 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.344/1.344, allocations: 222.9 MB / 241.3 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05088/0.05088, allocations: 8.094 MB / 299.5 MB, free: 6.91 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 59.91 kB / 361.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2432, allocations: 51.53 MB / 413.4 MB, free: 25.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer1): time 0.003132/0.2464, allocations: 2.679 MB / 416.1 MB, free: 23.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.2481, allocations: 1.355 MB / 417.4 MB, free: 21.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.2482, allocations: 4 kB / 417.4 MB, free: 21.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004461/0.2487, allocations: 227.3 kB / 417.7 MB, free: 21.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003691/0.2491, allocations: 247.1 kB / 417.9 MB, free: 21.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.2506, allocations: 0.9572 MB / 418.9 MB, free: 20.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004312/0.251, allocations: 470.5 kB / 419.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.2512, allocations: 75.45 kB / 419.4 MB, free: 19.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.2513, allocations: 211.3 kB / 419.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.2516, allocations: 303.1 kB / 419.9 MB, free: 19.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.2516, allocations: 36 kB / 419.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004167/0.2521, allocations: 319.7 kB / 420.2 MB, free: 18.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.2522, allocations: 139.5 kB / 420.4 MB, free: 18.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.2523, allocations: 250.4 kB / 420.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004601/0.2528, allocations: 0.5244 MB / 421.1 MB, free: 18.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2528, allocations: 0 / 421.1 MB, free: 18.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2528, allocations: 0 / 421.1 MB, free: 18.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.2528, allocations: 0 / 421.1 MB, free: 18.02 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.00364/0.2565, allocations: 1.358 MB / 422.5 MB, free: 16.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.2565, allocations: 11.89 kB / 422.5 MB, free: 16.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.2567, allocations: 64.19 kB / 422.6 MB, free: 16.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004308/0.2571, allocations: 475.7 kB / 423 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.2571, allocations: 20.38 kB / 423.1 MB, free: 16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.568e-05/0.2572, allocations: 20.38 kB / 423.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000658/0.2579, allocations: 406.2 kB / 423.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.2579, allocations: 0 / 423.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.081e-05/0.2579, allocations: 12 kB / 423.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.2579, allocations: 8 kB / 423.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000534/0.2585, allocations: 340 kB / 423.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.2599, allocations: 1.113 MB / 424.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000843/0.2608, allocations: 0.5116 MB / 425.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003512/0.2611, allocations: 273 kB / 425.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008389/0.262, allocations: 0.8705 MB / 426.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005957/0.2626, allocations: 491.2 kB / 427.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.014e-06/0.2626, allocations: 0 / 427.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003255/0.2659, allocations: 1.404 MB / 428.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.266, allocations: 251.5 kB / 428.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006182/0.2666, allocations: 0.6748 MB / 429.4 MB, free: 9.312 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.2666, allocations: 37.7 kB / 429.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.2668, allocations: 260.6 kB / 429.7 MB, free: 9.008 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.43e-05/0.2669, allocations: 118.4 kB / 429.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.267, allocations: 90.05 kB / 429.9 MB, free: 8.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.199e-05/0.2671, allocations: 378.8 kB / 430.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002315/0.2673, allocations: 196.9 kB / 430.5 MB, free: 8.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002619/0.2676, allocations: 303.2 kB / 430.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003229/0.2708, allocations: 1.402 MB / 432.2 MB, free: 6.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2708, allocations: 7.938 kB / 432.2 MB, free: 6.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001609/0.2724, allocations: 0.9198 MB / 433.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.255e-05/0.2725, allocations: 75.33 kB / 433.2 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.2725, allocations: 4 kB / 433.2 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/0.274, allocations: 355.2 kB / 433.5 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.2742, allocations: 67.91 kB / 433.6 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.2759, allocations: 2.264 MB / 435.8 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005003/0.2764, allocations: 79.48 kB / 435.9 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.671e-05/0.2764, allocations: 16 kB / 435.9 MB, free: 2.41 MB / 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: 11 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.varTra.tapChanger.tap,$PRE.varTra.tapChanger.furtherTapChangeTimeout,$PRE.varTra.tapChanger.abnormalUTime,varTra.tapChanger.furtherTapChangeTimeout,varTra.tapChanger.increaseEvent,varTra.tapChanger.decreaseEvent,varTra.tapChanger.normalU,varTra.tapChanger.abnormalUTime,varTra.tapChanger.tap,voltage.nextEventScaled,voltage.nextEvent,$PRE.voltage.nextEvent,voltage.last,voltage.b,voltage.a,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004007/0.2769, allocations: 320.6 kB / 436.2 MB, free: 2.078 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.444e-05/0.2769, allocations: 67.23 kB / 436.3 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002032/0.279, allocations: 1.173 MB / 437.5 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.279, allocations: 4 kB / 437.5 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.279, allocations: 4 kB / 437.5 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.279, allocations: 0 / 437.5 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004037/0.2794, allocations: 0.5478 MB / 438 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2794, allocations: 0 / 438 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001228/0.2796, allocations: 31.92 kB / 438.1 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001512/0.2811, allocations: 411 kB / 438.5 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.073e-05/0.2811, allocations: 19.92 kB / 438.5 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002277/0.2834, allocations: 2.372 MB / 440.9 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2834, allocations: 3.984 kB / 440.9 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002244/0.2857, allocations: 1.174 MB / 442 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002442/0.2859, allocations: 196.2 kB / 442.2 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.794e-05/0.2861, allocations: 24 kB / 442.3 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.2865, allocations: 67.81 kB / 442.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.2866, allocations: 31.95 kB / 442.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.597e-05/0.2866, allocations: 23.92 kB / 442.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005724/0.2872, allocations: 498.8 kB / 442.9 MB, free: 11.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2872, allocations: 0 / 442.9 MB, free: 11.14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005208/0.2878, allocations: 132 kB / 443 MB, free: 11.01 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: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,voltage.nextEvent,voltage.nextEventScaled,varTra.tapChanger.tap,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.furtherTapChangeTimeout) * Number of discrete states: 16 (voltage.nextEvent,voltage.last,voltage.nextEventScaled,voltage.b,voltage.a,$whenCondition1,varTra.tapChanger.tap,varTra.tapChanger.furtherTapChangeTimeout,$whenCondition5,$whenCondition4,varTra.tapChanger.abnormalUTime,$whenCondition3,$whenCondition2,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.normalU) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000281/0.288, allocations: 167.2 kB / 443.2 MB, free: 10.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001545/0.2896, allocations: 0.8925 MB / 444 MB, free: 9.906 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2896, allocations: 0 / 444 MB, free: 9.906 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009851/0.2906, allocations: 0.7082 MB / 444.8 MB, free: 9.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.291, allocations: 51 kB / 444.8 MB, free: 9.113 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.2926, allocations: 1.283 MB / 446.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000399/0.293, allocations: 0.8718 MB / 447 MB, free: 6.906 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.716e-05/0.2931, allocations: 35.44 kB / 447 MB, free: 6.871 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2931, allocations: 0 / 447 MB, free: 6.871 MB / 318.1 MB Notification: Performance of Templates: time 0.01296/0.3061, allocations: 9.988 MB / 457 MB, free: 12.88 MB / 334.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.makefile (rm -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.sim & ./PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.pipe 2>&1)