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.0008646/0.0008648, allocations: 98.36 kB / 16.72 MB, free: 6.633 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.0009665/0.0009666, allocations: 181.2 kB / 17.62 MB, free: 6.16 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.359/1.359, allocations: 223.3 MB / 241.7 MB, free: 232 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04038/0.04038, allocations: 8.103 MB / 300.9 MB, free: 6.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003218/0.0003218, allocations: 8 kB / 364.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2158, allocations: 52.51 MB / 416.7 MB, free: 24.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer2): time 0.001548/0.2173, allocations: 1.504 MB / 418.2 MB, free: 23.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001855/0.2192, allocations: 1.688 MB / 419.9 MB, free: 21.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.462e-05/0.2193, allocations: 4 kB / 419.9 MB, free: 21.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000336/0.2197, allocations: 115.5 kB / 420 MB, free: 21.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00029/0.22, allocations: 123.3 kB / 420.1 MB, free: 21.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.2213, allocations: 0.9144 MB / 421 MB, free: 20.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002775/0.2216, allocations: 318.7 kB / 421.3 MB, free: 20.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.2217, allocations: 56.72 kB / 421.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.2218, allocations: 115.5 kB / 421.5 MB, free: 20.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.222, allocations: 147.3 kB / 421.6 MB, free: 19.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.298e-05/0.222, allocations: 16 kB / 421.6 MB, free: 19.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003261/0.2224, allocations: 223.8 kB / 421.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.624e-05/0.2224, allocations: 43.77 kB / 421.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.2225, allocations: 165 kB / 422.1 MB, free: 19.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003009/0.2228, allocations: 353 kB / 422.4 MB, free: 19.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2229, allocations: 3.938 kB / 422.4 MB, free: 19.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2229, allocations: 8 kB / 422.4 MB, free: 19.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.2229, allocations: 0 / 422.4 MB, free: 19.08 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.003361/0.2262, allocations: 1.007 MB / 423.4 MB, free: 18.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2263, allocations: 15.97 kB / 423.4 MB, free: 18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.468e-05/0.2264, allocations: 28.66 kB / 423.5 MB, free: 17.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/0.2266, allocations: 294.7 kB / 423.8 MB, free: 17.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.2267, allocations: 16.38 kB / 423.8 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.265e-05/0.2268, allocations: 20.56 kB / 423.8 MB, free: 17.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005491/0.2273, allocations: 347.2 kB / 424.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.2274, allocations: 7.922 kB / 424.1 MB, free: 17.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.577e-05/0.2274, allocations: 8 kB / 424.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.2274, allocations: 0 / 424.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004496/0.2279, allocations: 267.9 kB / 424.4 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.229, allocations: 0.9478 MB / 425.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007793/0.2298, allocations: 443.4 kB / 425.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003044/0.2302, allocations: 200.8 kB / 426 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007286/0.2309, allocations: 0.8115 MB / 426.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004938/0.2314, allocations: 384.5 kB / 427.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.994e-06/0.2314, allocations: 0 / 427.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002644/0.2341, allocations: 1.032 MB / 428.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.118e-05/0.2342, allocations: 229.5 kB / 428.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.2344, allocations: 262.5 kB / 428.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/0.2344, allocations: 37.7 kB / 428.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.101e-05/0.2345, allocations: 144.7 kB / 428.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.527e-05/0.2346, allocations: 102.6 kB / 429 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.232e-05/0.2346, allocations: 45.69 kB / 429 MB, free: 12.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.751e-05/0.2347, allocations: 334.8 kB / 429.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002137/0.2349, allocations: 136.4 kB / 429.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.2352, allocations: 254.6 kB / 429.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00307/0.2382, allocations: 1.021 MB / 430.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.2383, allocations: 4 kB / 430.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009883/0.2393, allocations: 0.5937 MB / 431.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.695e-05/0.2393, allocations: 33.7 kB / 431.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.2393, allocations: 7.984 kB / 431.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/0.2408, allocations: 355.5 kB / 431.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002495/0.241, allocations: 67.91 kB / 431.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/0.2426, allocations: 2.166 MB / 434 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004473/0.2431, allocations: 84.61 kB / 434 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/0.2431, allocations: 20 kB / 434.1 MB, free: 6.684 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.0002453/0.2433, allocations: 216.5 kB / 434.3 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.109e-05/0.2434, allocations: 31.72 kB / 434.3 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001624/0.245, allocations: 0.8313 MB / 435.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.2451, allocations: 4 kB / 435.1 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2451, allocations: 3.984 kB / 435.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.2451, allocations: 0 / 435.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003213/0.2454, allocations: 441 kB / 435.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2454, allocations: 0 / 435.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001728/0.2456, allocations: 35.92 kB / 435.6 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001571/0.2472, allocations: 421.3 kB / 436 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.2472, allocations: 15.98 kB / 436 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001776/0.249, allocations: 2.267 MB / 438.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.249, allocations: 0 / 438.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.2509, allocations: 1.062 MB / 439.4 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.2511, allocations: 152.6 kB / 439.5 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.241e-05/0.2512, allocations: 16 kB / 439.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003905/0.2516, allocations: 71.94 kB / 439.6 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.2517, allocations: 35.95 kB / 439.6 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.2517, allocations: 12 kB / 439.7 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000142/0.2519, allocations: 194 kB / 439.8 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2519, allocations: 0 / 439.8 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004113/0.2523, allocations: 100 kB / 439.9 MB, free: 0.5 MB / 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.0001821/0.2525, allocations: 143.7 kB / 440.1 MB, free: 356 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.2537, allocations: 0.6466 MB / 440.7 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2538, allocations: 0 / 440.7 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009532/0.2547, allocations: 0.5503 MB / 441.3 MB, free: 15.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.255, allocations: 36.56 kB / 441.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.2561, allocations: 0.7655 MB / 442.1 MB, free: 14.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.2564, allocations: 0.7643 MB / 442.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.687e-05/0.2565, allocations: 27.42 kB / 442.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2565, allocations: 0 / 442.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of Templates: time 0.008389/0.2649, allocations: 6.149 MB / 449 MB, free: 7.312 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)