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.001046/0.001046, allocations: 107.3 kB / 16.57 MB, free: 6.262 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.001498/0.001498, allocations: 193.4 kB / 17.49 MB, free: 5.875 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.35/1.35, allocations: 222.9 MB / 241.2 MB, free: 13.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05294/0.05294, allocations: 8.097 MB / 299.4 MB, free: 6.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 59.91 kB / 361.7 MB, free: 8.355 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2355, allocations: 51.51 MB / 413.2 MB, free: 25.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.WithVariableLoad): time 0.003766/0.2393, allocations: 3.238 MB / 416.4 MB, free: 22.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001758/0.2411, allocations: 1.129 MB / 417.6 MB, free: 21.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003084/0.2414, allocations: 4 kB / 417.6 MB, free: 21.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004875/0.2419, allocations: 139.4 kB / 417.7 MB, free: 21.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006978/0.2426, allocations: 238.8 kB / 417.9 MB, free: 21.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001764/0.2444, allocations: 1.245 MB / 419.2 MB, free: 19.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005342/0.245, allocations: 477.9 kB / 419.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.2452, allocations: 113.4 kB / 419.8 MB, free: 19.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002823/0.2454, allocations: 187.2 kB / 420 MB, free: 19.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000313/0.2458, allocations: 238.9 kB / 420.2 MB, free: 18.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.149e-05/0.2459, allocations: 24 kB / 420.2 MB, free: 18.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005256/0.2464, allocations: 299.7 kB / 420.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.835e-05/0.2465, allocations: 79.62 kB / 420.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002128/0.2467, allocations: 202.9 kB / 420.8 MB, free: 18.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005021/0.2472, allocations: 0.5028 MB / 421.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2472, allocations: 4 kB / 421.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.2472, allocations: 0 / 421.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.2472, allocations: 0 / 421.3 MB, free: 17.68 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.004315/0.2516, allocations: 1.308 MB / 422.6 MB, free: 16.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.2516, allocations: 15.97 kB / 422.6 MB, free: 16.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.2518, allocations: 48.47 kB / 422.7 MB, free: 16.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004228/0.2522, allocations: 351.3 kB / 423 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.479e-05/0.2523, allocations: 50.83 kB / 423 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.492e-05/0.2523, allocations: 36.38 kB / 423.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008137/0.2532, allocations: 484.8 kB / 423.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.2532, allocations: 0 / 423.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.732e-05/0.2532, allocations: 12 kB / 423.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.2533, allocations: 8 kB / 423.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007537/0.254, allocations: 469.9 kB / 424 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002313/0.2563, allocations: 1.988 MB / 426 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009899/0.2573, allocations: 0.5545 MB / 426.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004751/0.2578, allocations: 333.5 kB / 426.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001353/0.258, allocations: 93.42 kB / 427 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000794/0.2588, allocations: 0.532 MB / 427.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.174e-06/0.2588, allocations: 0 / 427.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=51): time 0.005676/0.2645, allocations: 1.892 MB / 429.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.2645, allocations: 203.9 kB / 429.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002778/0.2648, allocations: 316.4 kB / 429.9 MB, free: 8.594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.136e-05/0.2649, allocations: 37.7 kB / 430 MB, free: 8.551 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.278e-05/0.265, allocations: 172.9 kB / 430.1 MB, free: 8.379 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.514e-05/0.2651, allocations: 161.7 kB / 430.3 MB, free: 8.219 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.2653, allocations: 110.2 kB / 430.4 MB, free: 8.105 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.398e-05/0.2653, allocations: 350.7 kB / 430.7 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004202/0.2658, allocations: 289.1 kB / 431 MB, free: 7.473 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004417/0.2662, allocations: 346 kB / 431.4 MB, free: 7.125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007582/0.2738, allocations: 2.158 MB / 433.5 MB, free: 4.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.2738, allocations: 0 / 433.5 MB, free: 4.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00321/0.277, allocations: 1.297 MB / 434.8 MB, free: 3.621 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/0.2771, allocations: 37.64 kB / 434.9 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.2771, allocations: 3.938 kB / 434.9 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00361/0.2807, allocations: 0.8589 MB / 435.7 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.2811, allocations: 79.89 kB / 435.8 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/0.2826, allocations: 1.264 MB / 437.1 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005816/0.2831, allocations: 91.53 kB / 437.1 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-05/0.2832, allocations: 23.98 kB / 437.2 MB, free: 1.223 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: 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.0003372/0.2836, allocations: 224.5 kB / 437.4 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.2837, allocations: 43.53 kB / 437.4 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.2856, allocations: 1.224 MB / 438.7 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.2856, allocations: 12 kB / 438.7 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2856, allocations: 0 / 438.7 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.2856, allocations: 3.984 kB / 438.7 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006828/0.2863, allocations: 0.6305 MB / 439.3 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.2863, allocations: 0 / 439.3 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.2866, allocations: 47.91 kB / 439.3 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003821/0.2904, allocations: 0.9083 MB / 440.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-05/0.2905, allocations: 16 kB / 440.3 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002312/0.2928, allocations: 1.401 MB / 441.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.2928, allocations: 0 / 441.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/0.2949, allocations: 1.182 MB / 442.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003033/0.2952, allocations: 196.4 kB / 443 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.2954, allocations: 23.92 kB / 443.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005354/0.2959, allocations: 67.94 kB / 443.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.2961, allocations: 52.3 kB / 443.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.677e-05/0.2961, allocations: 20 kB / 443.2 MB, free: 11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002761/0.2964, allocations: 227 kB / 443.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2964, allocations: 0 / 443.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004991/0.2969, allocations: 147.9 kB / 443.6 MB, free: 10.63 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.0002738/0.2972, allocations: 157.4 kB / 443.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.2994, allocations: 0.9169 MB / 444.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.2994, allocations: 0 / 444.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001434/0.3009, allocations: 0.6686 MB / 445.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004339/0.3013, allocations: 49.03 kB / 445.4 MB, free: 8.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/0.3031, allocations: 0.9994 MB / 446.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.3035, allocations: 0.801 MB / 447.2 MB, free: 6.957 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.3036, allocations: 35.42 kB / 447.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3036, allocations: 4 kB / 447.2 MB, free: 6.918 MB / 318.1 MB Notification: Performance of Templates: time 0.0113/0.3149, allocations: 7.246 MB / 454.4 MB, free: 15.67 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 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.pipe 2>&1)