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/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 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.00397/0.00397, allocations: 93.2 kB / 15.91 MB, free: 6.273 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.0009613/0.0009613, allocations: 198.1 kB / 16.83 MB, free: 6.188 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.211/1.211, allocations: 222.9 MB / 240.5 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1512/0.1512, allocations: 8.076 MB / 298.7 MB, free: 2.035 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 59.86 kB / 361 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.09117, allocations: 51.52 MB / 412.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer1): time 0.003427/0.09464, allocations: 2.684 MB / 415.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.09657, allocations: 1.406 MB / 416.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.114e-05/0.09667, allocations: 4 kB / 416.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004688/0.09715, allocations: 247.3 kB / 416.9 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003408/0.09751, allocations: 231.1 kB / 417.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.09908, allocations: 0.9771 MB / 418.1 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003611/0.09945, allocations: 414.5 kB / 418.5 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.09961, allocations: 64.7 kB / 418.6 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.09978, allocations: 183.3 kB / 418.7 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002784/0.1001, allocations: 283.1 kB / 419 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.753e-05/0.1001, allocations: 20 kB / 419 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000425/0.1005, allocations: 303.7 kB / 419.3 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.1007, allocations: 143.4 kB / 419.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.1009, allocations: 226.5 kB / 419.7 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006102/0.1015, allocations: 0.6973 MB / 420.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1015, allocations: 0 / 420.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.1015, allocations: 0 / 420.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.1015, allocations: 0 / 420.4 MB, free: 2.324 MB / 350.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.003659/0.1052, allocations: 1.366 MB / 421.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.1052, allocations: 12.03 kB / 421.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.1054, allocations: 64.19 kB / 421.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004975/0.1059, allocations: 463.8 kB / 422.3 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.1059, allocations: 16.38 kB / 422.3 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.476e-05/0.106, allocations: 20.38 kB / 422.3 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000703/0.1067, allocations: 426.1 kB / 422.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.1067, allocations: 0 / 422.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.924e-05/0.1067, allocations: 8 kB / 422.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1067, allocations: 8 kB / 422.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005436/0.1073, allocations: 336.2 kB / 423.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.1088, allocations: 1.12 MB / 424.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008836/0.1097, allocations: 0.502 MB / 424.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003684/0.1101, allocations: 280.9 kB / 425 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009374/0.1111, allocations: 0.8627 MB / 425.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006292/0.1117, allocations: 480.6 kB / 426.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.693e-06/0.1117, allocations: 0 / 426.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.003221/0.1149, allocations: 1.404 MB / 427.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.1151, allocations: 251.5 kB / 428 MB, free: 10.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006456/0.1157, allocations: 0.6786 MB / 428.6 MB, free: 9.629 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.1158, allocations: 37.7 kB / 428.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000174/0.1159, allocations: 264.7 kB / 428.9 MB, free: 9.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.527e-05/0.116, allocations: 110.4 kB / 429 MB, free: 9.211 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/0.1162, allocations: 90.05 kB / 429.1 MB, free: 9.113 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1163, allocations: 374.8 kB / 429.5 MB, free: 8.738 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.1166, allocations: 204.8 kB / 429.7 MB, free: 8.539 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000358/0.117, allocations: 311.2 kB / 430 MB, free: 8.199 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003307/0.1203, allocations: 1.394 MB / 431.4 MB, free: 6.719 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.1203, allocations: 3.938 kB / 431.4 MB, free: 6.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001666/0.122, allocations: 0.9277 MB / 432.3 MB, free: 5.758 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.741e-05/0.1221, allocations: 80.88 kB / 432.4 MB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1221, allocations: 0 / 432.4 MB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/0.1235, allocations: 362.7 kB / 432.8 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.1237, allocations: 59.91 kB / 432.8 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/0.1255, allocations: 2.158 MB / 435 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004306/0.126, allocations: 83.58 kB / 435.1 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.812e-05/0.126, allocations: 19.98 kB / 435.1 MB, free: 2.82 MB / 366.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.0003412/0.1264, allocations: 316.6 kB / 435.4 MB, free: 2.492 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.356e-05/0.1265, allocations: 63.25 kB / 435.4 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/0.1286, allocations: 1.177 MB / 436.6 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1286, allocations: 4 kB / 436.6 MB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.1286, allocations: 3.984 kB / 436.6 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1286, allocations: 7.922 kB / 436.6 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004831/0.1291, allocations: 0.544 MB / 437.2 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1291, allocations: 0 / 437.2 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.1293, allocations: 31.98 kB / 437.2 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001445/0.1307, allocations: 404.8 kB / 437.6 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.1308, allocations: 19.98 kB / 437.6 MB, free: 168 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1494/0.2802, allocations: 2.263 MB / 439.9 MB, free: 56.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2802, allocations: 0.5625 kB / 439.9 MB, free: 56.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00206/0.2823, allocations: 1.178 MB / 441.1 MB, free: 56.03 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001989/0.2825, allocations: 196.2 kB / 441.3 MB, free: 55.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.869e-05/0.2826, allocations: 21.73 kB / 441.3 MB, free: 55.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003659/0.283, allocations: 60.41 kB / 441.3 MB, free: 55.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.2831, allocations: 42.89 kB / 441.4 MB, free: 55.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.932e-05/0.2831, allocations: 15.06 kB / 441.4 MB, free: 55.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004752/0.2836, allocations: 498.2 kB / 441.9 MB, free: 55.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2836, allocations: 0 / 441.9 MB, free: 55.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004587/0.2841, allocations: 136.3 kB / 442 MB, free: 55.84 MB / 366.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.0002492/0.2843, allocations: 179.8 kB / 442.2 MB, free: 55.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.2856, allocations: 0.8742 MB / 443.1 MB, free: 55.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2856, allocations: 3.875 kB / 443.1 MB, free: 55.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008297/0.2864, allocations: 0.7129 MB / 443.8 MB, free: 55.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.2868, allocations: 51.22 kB / 443.8 MB, free: 55.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.288, allocations: 1.236 MB / 445.1 MB, free: 54.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.2883, allocations: 0.8771 MB / 445.9 MB, free: 54.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001254/0.2884, allocations: 56.38 kB / 446 MB, free: 54.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.83e-05/0.2885, allocations: 31.11 kB / 446 MB, free: 54.06 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2885, allocations: 0 / 446 MB, free: 54.06 MB / 366.1 MB Notification: Performance of Templates: time 0.009904/0.2984, allocations: 7.593 MB / 453.6 MB, free: 53.57 MB / 366.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)