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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004131/0.004131, allocations: 93.86 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.001053/0.001053, allocations: 199.8 kB / 16.84 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.195/1.195, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1378/0.1378, allocations: 8.076 MB / 298.7 MB, free: 2.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 59.91 kB / 361 MB, free: 13.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08704/0.08806, allocations: 51.51 MB / 412.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer2): time 0.002745/0.09084, allocations: 1.873 MB / 414.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.09281, allocations: 1.711 MB / 416.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.198e-05/0.09288, allocations: 4 kB / 416.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000311/0.09321, allocations: 123.5 kB / 416.3 MB, free: 6.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002665/0.09348, allocations: 127.3 kB / 416.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001419/0.09491, allocations: 0.9302 MB / 417.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000287/0.09521, allocations: 318.7 kB / 417.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.09534, allocations: 56.7 kB / 417.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.09546, allocations: 123.5 kB / 417.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.09562, allocations: 151.3 kB / 417.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.99e-05/0.09567, allocations: 16 kB / 418 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003308/0.09601, allocations: 231.7 kB / 418.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.389e-05/0.09606, allocations: 43.83 kB / 418.2 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.0962, allocations: 147.2 kB / 418.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004647/0.09667, allocations: 482.9 kB / 418.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.09668, allocations: 0 / 418.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.09669, allocations: 0 / 418.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.0967, allocations: 0 / 418.8 MB, free: 3.852 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.00339/0.1001, allocations: 1.062 MB / 419.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.1001, allocations: 8.031 kB / 419.9 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.068e-05/0.1002, allocations: 36.55 kB / 419.9 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.1005, allocations: 290.8 kB / 420.2 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.1006, allocations: 20.38 kB / 420.2 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.413e-05/0.1006, allocations: 20.56 kB / 420.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006143/0.1013, allocations: 346.9 kB / 420.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.1013, allocations: 0 / 420.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.361e-05/0.1013, allocations: 11.94 kB / 420.6 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.1013, allocations: 4 kB / 420.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004814/0.1018, allocations: 267.8 kB / 420.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.1031, allocations: 0.9322 MB / 421.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008724/0.104, allocations: 443.3 kB / 422.3 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/0.1043, allocations: 196.8 kB / 422.4 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009044/0.1052, allocations: 0.823 MB / 423.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005687/0.1058, allocations: 378.8 kB / 423.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.523e-06/0.1058, allocations: 0 / 423.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002624/0.1085, allocations: 1.029 MB / 424.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.904e-05/0.1086, allocations: 221.6 kB / 424.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.1088, allocations: 258.6 kB / 425.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.1088, allocations: 41.7 kB / 425.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.066e-05/0.1089, allocations: 144.6 kB / 425.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.388e-05/0.109, allocations: 106.5 kB / 425.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.1091, allocations: 73.69 kB / 425.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.1092, allocations: 342.8 kB / 425.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/0.1095, allocations: 128.4 kB / 426 MB, free: 12.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002849/0.1098, allocations: 250.3 kB / 426.2 MB, free: 12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003061/0.1128, allocations: 1.013 MB / 427.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1128, allocations: 0 / 427.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001002/0.1139, allocations: 0.5977 MB / 427.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.562e-05/0.1139, allocations: 37.69 kB / 427.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.036e-06/0.1139, allocations: 4 kB / 427.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00147/0.1154, allocations: 355.3 kB / 428.2 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.1157, allocations: 71.88 kB / 428.3 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001795/0.1175, allocations: 2.156 MB / 430.4 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003973/0.1179, allocations: 79.56 kB / 430.5 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/0.1179, allocations: 24.06 kB / 430.5 MB, free: 7.41 MB / 366.1 MB Warning: Assuming fixed start value for the following 4 variables: slackBusRamp.U:VARIABLE(start = slackBusRamp.UNom unit = "V" fixed = true ) type: Real 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: 12 * Number of states: 0 () * Number of discrete variables: 13 ($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,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * 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.0002415/0.1182, allocations: 219.1 kB / 430.7 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.028e-05/0.1182, allocations: 31.62 kB / 430.8 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.1199, allocations: 0.8236 MB / 431.6 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1199, allocations: 8 kB / 431.6 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.1199, allocations: 0 / 431.6 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1199, allocations: 3.984 kB / 431.6 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.1203, allocations: 437.1 kB / 432 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1203, allocations: 0 / 432 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.1205, allocations: 39.92 kB / 432.1 MB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001472/0.1219, allocations: 415.4 kB / 432.5 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.122, allocations: 11.98 kB / 432.5 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001992/0.124, allocations: 2.267 MB / 434.8 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.124, allocations: 0 / 434.8 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.1259, allocations: 1.043 MB / 435.8 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.1261, allocations: 148.7 kB / 435.9 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.793e-05/0.1261, allocations: 23.94 kB / 436 MB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003551/0.1265, allocations: 59.94 kB / 436 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.1266, allocations: 35.89 kB / 436.1 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.1267, allocations: 15.98 kB / 436.1 MB, free: 1.547 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001564/0.1268, allocations: 190 kB / 436.3 MB, free: 1.363 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1268, allocations: 0 / 436.3 MB, free: 1.363 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003613/0.1272, allocations: 96 kB / 436.4 MB, free: 1.27 MB / 366.1 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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.0001888/0.1274, allocations: 147.2 kB / 436.5 MB, free: 1.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.1285, allocations: 0.647 MB / 437.1 MB, free: 452 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1285, allocations: 0 / 437.1 MB, free: 452 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1399/0.2684, allocations: 0.5472 MB / 437.7 MB, free: 57.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003962/0.2689, allocations: 36.86 kB / 437.7 MB, free: 57.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.2699, allocations: 0.6853 MB / 438.4 MB, free: 57.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001474/0.2701, allocations: 0.7653 MB / 439.2 MB, free: 56.44 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.2702, allocations: 34.91 kB / 439.2 MB, free: 56.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.845e-05/0.2703, allocations: 22.62 kB / 439.2 MB, free: 56.43 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2703, allocations: 0 / 439.2 MB, free: 56.43 MB / 366.1 MB Notification: Performance of Templates: time 0.007737/0.278, allocations: 5.709 MB / 444.9 MB, free: 56.14 MB / 366.1 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)