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.001051/0.001051, allocations: 103.8 kB / 16.45 MB, free: 6.395 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.001202/0.001202, allocations: 188 kB / 17.39 MB, free: 5.664 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.343/1.343, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05723/0.05723, allocations: 8.099 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 59.89 kB / 414.5 MB, free: 21.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09603/0.09721, allocations: 51.51 MB / 466 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer2): time 0.002702/0.09996, allocations: 1.837 MB / 467.8 MB, free: 200 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002249/0.1022, allocations: 1.684 MB / 469.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.556e-05/0.1023, allocations: 4 kB / 469.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003907/0.1027, allocations: 147.2 kB / 469.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003508/0.1031, allocations: 139.1 kB / 469.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001624/0.1047, allocations: 0.9528 MB / 470.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004043/0.1051, allocations: 370.6 kB / 471.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.1053, allocations: 76.62 kB / 471.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.1054, allocations: 143.5 kB / 471.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.1056, allocations: 151.4 kB / 471.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.733e-05/0.1057, allocations: 28 kB / 471.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003956/0.1061, allocations: 243.8 kB / 471.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.55e-05/0.1062, allocations: 55.7 kB / 471.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.1063, allocations: 159.2 kB / 472 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006105/0.107, allocations: 498.4 kB / 472.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.107, allocations: 0 / 472.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.107, allocations: 0 / 472.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.107, allocations: 0 / 472.4 MB, free: 11.56 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.003523/0.1105, allocations: 1.065 MB / 473.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.1106, allocations: 8.031 kB / 473.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.669e-05/0.1107, allocations: 36.75 kB / 473.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003343/0.111, allocations: 294.8 kB / 473.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.111, allocations: 20.38 kB / 473.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.885e-05/0.1111, allocations: 24.56 kB / 473.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006211/0.1118, allocations: 339 kB / 474.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.1118, allocations: 3.938 kB / 474.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.31e-05/0.1118, allocations: 8 kB / 474.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.1119, allocations: 4 kB / 474.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005309/0.1124, allocations: 267.8 kB / 474.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.1137, allocations: 0.9323 MB / 475.4 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008257/0.1145, allocations: 449.9 kB / 475.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000342/0.1149, allocations: 200.8 kB / 476.1 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008765/0.1158, allocations: 0.8191 MB / 476.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006407/0.1164, allocations: 375.6 kB / 477.2 MB, free: 6.445 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.834e-06/0.1165, allocations: 0 / 477.2 MB, free: 6.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002832/0.1193, allocations: 1.037 MB / 478.3 MB, free: 5.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.1194, allocations: 217.6 kB / 478.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002953/0.1197, allocations: 254.6 kB / 478.7 MB, free: 4.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.1198, allocations: 37.7 kB / 478.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.1199, allocations: 160.7 kB / 478.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.439e-05/0.12, allocations: 103.2 kB / 479 MB, free: 4.531 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.1201, allocations: 81.62 kB / 479.1 MB, free: 4.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1202, allocations: 338.8 kB / 479.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.1205, allocations: 132.4 kB / 479.6 MB, free: 3.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002932/0.1208, allocations: 242.5 kB / 479.8 MB, free: 3.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00303/0.1238, allocations: 1.025 MB / 480.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.1238, allocations: 0 / 480.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001056/0.1249, allocations: 0.6017 MB / 481.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.198e-05/0.125, allocations: 37.7 kB / 481.5 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.125, allocations: 0 / 481.5 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001447/0.1264, allocations: 355.3 kB / 481.8 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/0.1267, allocations: 71.91 kB / 481.9 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/0.1289, allocations: 2.264 MB / 484.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004672/0.1293, allocations: 71.69 kB / 484.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.053e-05/0.1294, allocations: 28.05 kB / 484.3 MB, free: 14.98 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.0003017/0.1297, allocations: 212.8 kB / 484.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.316e-05/0.1298, allocations: 35.75 kB / 484.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/0.1315, allocations: 0.8277 MB / 485.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1315, allocations: 4 kB / 485.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1315, allocations: 3.938 kB / 485.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1316, allocations: 4 kB / 485.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004116/0.132, allocations: 441 kB / 485.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.132, allocations: 3.984 kB / 485.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001702/0.1322, allocations: 35.92 kB / 485.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001479/0.1337, allocations: 403.7 kB / 486.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.1337, allocations: 15.98 kB / 486.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002337/0.136, allocations: 2.366 MB / 488.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.1361, allocations: 7.922 kB / 488.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002045/0.1381, allocations: 1.047 MB / 489.6 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.1383, allocations: 152.8 kB / 489.8 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.559e-05/0.1384, allocations: 19.94 kB / 489.8 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003762/0.1388, allocations: 56 kB / 489.9 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.1389, allocations: 35.95 kB / 489.9 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.332e-05/0.1389, allocations: 12 kB / 489.9 MB, free: 9.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001814/0.1391, allocations: 193.9 kB / 490.1 MB, free: 8.832 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1391, allocations: 0 / 490.1 MB, free: 8.832 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004083/0.1395, allocations: 96 kB / 490.2 MB, free: 8.738 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.0002295/0.1398, allocations: 147.1 kB / 490.3 MB, free: 8.582 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.1411, allocations: 0.6353 MB / 491 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.1411, allocations: 0 / 491 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008951/0.142, allocations: 0.5564 MB / 491.5 MB, free: 7.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.1423, allocations: 40.36 kB / 491.6 MB, free: 7.301 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.1433, allocations: 0.6182 MB / 492.2 MB, free: 6.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.1436, allocations: 0.7605 MB / 492.9 MB, free: 5.871 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000113/0.1438, allocations: 30.28 kB / 493 MB, free: 5.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.176e-05/0.1438, allocations: 27.42 kB / 493 MB, free: 5.812 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1438, allocations: 0 / 493 MB, free: 5.812 MB / 366.1 MB Notification: Performance of Templates: time 0.01073/0.1546, allocations: 6.465 MB / 499.5 MB, free: 15.39 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)