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.001131/0.001131, allocations: 103.8 kB / 16.98 MB, free: 6.18 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.001027/0.001027, allocations: 187.3 kB / 17.91 MB, free: 5.281 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.382/1.382, allocations: 222.9 MB / 241.6 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05092/0.05092, allocations: 8.091 MB / 299.9 MB, free: 6.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001458, allocations: 67.89 kB / 362.4 MB, free: 8.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2127, allocations: 51.51 MB / 413.9 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer2): time 0.002498/0.2153, allocations: 1.826 MB / 415.7 MB, free: 23.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.217, allocations: 1.684 MB / 417.4 MB, free: 22.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.2171, allocations: 7.938 kB / 417.4 MB, free: 22.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003612/0.2175, allocations: 143.2 kB / 417.6 MB, free: 21.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003229/0.2179, allocations: 143.1 kB / 417.7 MB, free: 21.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.2192, allocations: 0.9453 MB / 418.7 MB, free: 20.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003533/0.2196, allocations: 358.7 kB / 419 MB, free: 20.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.2197, allocations: 68.7 kB / 419.1 MB, free: 20.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.2199, allocations: 139.5 kB / 419.2 MB, free: 20.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.22, allocations: 159.3 kB / 419.4 MB, free: 20.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.39e-05/0.2201, allocations: 28 kB / 419.4 MB, free: 20.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003683/0.2204, allocations: 235.8 kB / 419.6 MB, free: 19.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.106e-05/0.2205, allocations: 51.72 kB / 419.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.2206, allocations: 155.2 kB / 419.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004426/0.2211, allocations: 0.5045 MB / 420.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2211, allocations: 0 / 420.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2211, allocations: 0 / 420.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.2211, allocations: 0 / 420.3 MB, free: 19.14 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.003323/0.2244, allocations: 1.054 MB / 421.4 MB, free: 18.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.2245, allocations: 11.89 kB / 421.4 MB, free: 18.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.992e-05/0.2246, allocations: 36.56 kB / 421.4 MB, free: 17.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.2249, allocations: 290.8 kB / 421.7 MB, free: 17.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.2249, allocations: 20.31 kB / 421.7 MB, free: 17.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.423e-05/0.225, allocations: 28.56 kB / 421.8 MB, free: 17.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005495/0.2255, allocations: 335.1 kB / 422.1 MB, free: 17.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.2256, allocations: 0 / 422.1 MB, free: 17.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.2256, allocations: 12 kB / 422.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.2256, allocations: 4 kB / 422.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004353/0.2261, allocations: 267.8 kB / 422.4 MB, free: 17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.2272, allocations: 0.9283 MB / 423.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007455/0.228, allocations: 447.3 kB / 423.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002904/0.2283, allocations: 204.8 kB / 423.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007484/0.2291, allocations: 0.8153 MB / 424.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005269/0.2296, allocations: 385.7 kB / 425.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.485e-06/0.2296, allocations: 8 kB / 425.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002489/0.2321, allocations: 1.021 MB / 426.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.107e-05/0.2322, allocations: 225.5 kB / 426.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.2324, allocations: 258.6 kB / 426.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.2324, allocations: 41.7 kB / 426.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.314e-05/0.2325, allocations: 144.7 kB / 426.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.705e-05/0.2326, allocations: 98.55 kB / 426.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.2327, allocations: 81.67 kB / 427 MB, free: 12.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.135e-05/0.2328, allocations: 342.8 kB / 427.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.233, allocations: 136.4 kB / 427.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/0.2332, allocations: 238.7 kB / 427.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002798/0.236, allocations: 1.017 MB / 428.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.2361, allocations: 0 / 428.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009549/0.237, allocations: 0.5977 MB / 429.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.2371, allocations: 44.03 kB / 429.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.2371, allocations: 4 kB / 429.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001337/0.2384, allocations: 355 kB / 429.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.2387, allocations: 71.84 kB / 429.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001564/0.2403, allocations: 2.264 MB / 432 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004516/0.2407, allocations: 87.78 kB / 432.1 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.081e-05/0.2408, allocations: 16 kB / 432.1 MB, free: 6.586 MB / 302.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.0002743/0.2411, allocations: 220.4 kB / 432.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.805e-05/0.2411, allocations: 31.66 kB / 432.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001617/0.2427, allocations: 0.8274 MB / 433.2 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.2428, allocations: 4 kB / 433.2 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.2428, allocations: 3.938 kB / 433.2 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2428, allocations: 3.938 kB / 433.2 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004615/0.2433, allocations: 433.2 kB / 433.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.2433, allocations: 0 / 433.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002715/0.2436, allocations: 35.98 kB / 433.7 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001506/0.2451, allocations: 414.9 kB / 434.1 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.318e-05/0.2451, allocations: 8 kB / 434.1 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001781/0.2469, allocations: 2.376 MB / 436.5 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.2469, allocations: 0 / 436.5 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.2487, allocations: 1.054 MB / 437.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.2489, allocations: 148.7 kB / 437.7 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.661e-05/0.249, allocations: 16 kB / 437.7 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003585/0.2493, allocations: 60 kB / 437.7 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.2494, allocations: 35.95 kB / 437.8 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-05/0.2495, allocations: 15.98 kB / 437.8 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001493/0.2496, allocations: 186 kB / 438 MB, free: 440 kB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.2496, allocations: 0 / 438 MB, free: 440 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.000409/0.2501, allocations: 99.98 kB / 438.1 MB, free: 340 kB / 302.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.0001849/0.2502, allocations: 143.2 kB / 438.2 MB, free: 184 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.2516, allocations: 0.6587 MB / 438.9 MB, free: 15.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.2516, allocations: 4 kB / 438.9 MB, free: 15.49 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009062/0.2525, allocations: 0.5496 MB / 439.4 MB, free: 14.92 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003072/0.2528, allocations: 36.48 kB / 439.5 MB, free: 14.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.254, allocations: 0.6445 MB / 440.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.2544, allocations: 0.7605 MB / 440.9 MB, free: 13.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.911e-05/0.2545, allocations: 35.42 kB / 440.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2545, allocations: 0 / 440.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of Templates: time 0.00909/0.2636, allocations: 6.184 MB / 447.1 MB, free: 7.203 MB / 318.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)