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-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.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.001385/0.00139, allocations: 119.9 kB / 17.13 MB, free: 5.91 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.001546/0.001546, allocations: 192.1 kB / 18.06 MB, free: 4.996 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.313/1.313, allocations: 222.9 MB / 241.8 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04628/0.04628, allocations: 8.108 MB / 300 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.91 kB / 415.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08399/0.08522, allocations: 51.52 MB / 466.7 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer2): time 0.003194/0.08846, allocations: 1.833 MB / 468.5 MB, free: 324 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002428/0.09091, allocations: 1.688 MB / 470.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001888/0.09113, allocations: 4 kB / 470.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004636/0.09162, allocations: 143.2 kB / 470.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004614/0.09209, allocations: 143.1 kB / 470.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001784/0.09389, allocations: 0.9567 MB / 471.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005414/0.09444, allocations: 366.6 kB / 471.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.09463, allocations: 72.62 kB / 471.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.09483, allocations: 143.5 kB / 472 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002356/0.09507, allocations: 159.3 kB / 472.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.627e-05/0.09515, allocations: 28 kB / 472.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004676/0.09562, allocations: 239.8 kB / 472.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.091e-05/0.09569, allocations: 55.7 kB / 472.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001795/0.09588, allocations: 155.2 kB / 472.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006651/0.09655, allocations: 498.7 kB / 473.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.09657, allocations: 0 / 473.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.09657, allocations: 0 / 473.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.09659, allocations: 0 / 473.1 MB, free: 11.68 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.003729/0.1003, allocations: 1.058 MB / 474.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.1004, allocations: 15.83 kB / 474.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.327e-05/0.1005, allocations: 36.56 kB / 474.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/0.1008, allocations: 298.7 kB / 474.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.1009, allocations: 20.38 kB / 474.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.91e-05/0.101, allocations: 20.56 kB / 474.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006353/0.1016, allocations: 339 kB / 474.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1016, allocations: 0 / 474.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.659e-05/0.1017, allocations: 8 kB / 474.9 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.1017, allocations: 4 kB / 474.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005211/0.1022, allocations: 271.8 kB / 475.2 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.1036, allocations: 0.9166 MB / 476.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008954/0.1045, allocations: 455.1 kB / 476.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003571/0.1049, allocations: 200.8 kB / 476.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009664/0.1059, allocations: 0.8151 MB / 477.5 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006083/0.1065, allocations: 386.7 kB / 477.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.723e-06/0.1065, allocations: 0 / 477.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002844/0.1094, allocations: 1.025 MB / 478.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.1095, allocations: 221.6 kB / 479.2 MB, free: 5.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002594/0.1098, allocations: 262.5 kB / 479.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.1098, allocations: 37.7 kB / 479.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.521e-05/0.1099, allocations: 144.7 kB / 479.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.735e-05/0.11, allocations: 106.5 kB / 479.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.1101, allocations: 77.67 kB / 479.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1103, allocations: 334.8 kB / 480.1 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002547/0.1105, allocations: 132.4 kB / 480.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003159/0.1109, allocations: 246.5 kB / 480.5 MB, free: 3.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003336/0.1142, allocations: 1.025 MB / 481.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1142, allocations: 0 / 481.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001135/0.1154, allocations: 0.6015 MB / 482.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/0.1154, allocations: 33.7 kB / 482.1 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.1154, allocations: 4 kB / 482.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001537/0.117, allocations: 359.3 kB / 482.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.1173, allocations: 63.89 kB / 482.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002118/0.1194, allocations: 2.268 MB / 484.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004392/0.1199, allocations: 71.77 kB / 484.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.855e-05/0.1199, allocations: 19.98 kB / 484.9 MB, free: 15.12 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.000307/0.1202, allocations: 210 kB / 485.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.163e-05/0.1203, allocations: 43.56 kB / 485.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/0.1221, allocations: 0.8275 MB / 486 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1221, allocations: 4 kB / 486 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.1221, allocations: 3.938 kB / 486 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.1221, allocations: 0 / 486 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004251/0.1226, allocations: 437 kB / 486.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.1226, allocations: 3.984 kB / 486.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001789/0.1228, allocations: 27.98 kB / 486.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001561/0.1243, allocations: 403.6 kB / 486.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.614e-05/0.1244, allocations: 15.98 kB / 486.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002556/0.127, allocations: 2.379 MB / 489.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.127, allocations: 3.938 kB / 489.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00211/0.1291, allocations: 1.047 MB / 490.3 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001725/0.1293, allocations: 148.6 kB / 490.4 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.1294, allocations: 20 kB / 490.4 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003984/0.1298, allocations: 56 kB / 490.5 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.1299, allocations: 31.95 kB / 490.5 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.72e-05/0.1299, allocations: 23.98 kB / 490.6 MB, free: 9.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000186/0.1301, allocations: 189.9 kB / 490.7 MB, free: 8.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1301, allocations: 4 kB / 490.7 MB, free: 8.977 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004343/0.1306, allocations: 92 kB / 490.8 MB, free: 8.887 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.0002675/0.1308, allocations: 143.2 kB / 491 MB, free: 8.734 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001316/0.1322, allocations: 0.6428 MB / 491.6 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1322, allocations: 0 / 491.6 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009142/0.1331, allocations: 0.5448 MB / 492.2 MB, free: 7.496 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.1334, allocations: 40.36 kB / 492.2 MB, free: 7.457 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.1345, allocations: 0.6441 MB / 492.8 MB, free: 6.789 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.1349, allocations: 0.7605 MB / 493.6 MB, free: 6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.047e-05/0.1349, allocations: 23.44 kB / 493.6 MB, free: 5.977 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1349, allocations: 4 kB / 493.6 MB, free: 5.973 MB / 366.1 MB Notification: Performance of Templates: time 0.009307/0.1443, allocations: 6.213 MB / 499.8 MB, free: 15.75 MB / 382.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)