Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 96.03 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 175.2 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.4 MB / 222.7 MB, free: 5.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06149/0.06149, allocations: 14.16 MB / 285.2 MB, free: 7.16 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005168/0.0005171, allocations: 18.66 kB / 348.1 MB, free: 18.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1084, allocations: 51.11 MB / 399.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicInterval): time 0.001966/0.1104, allocations: 1.192 MB / 400.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.1117, allocations: 0.5861 MB / 401 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.298e-05/0.1118, allocations: 0 / 401 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.001e-05/0.1118, allocations: 3.938 kB / 401 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001978/0.112, allocations: 27.89 kB / 401 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000234/0.1123, allocations: 91.8 kB / 401.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.1125, allocations: 155.8 kB / 401.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.379e-05/0.1126, allocations: 4 kB / 401.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002789/0.1129, allocations: 151.7 kB / 401.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.1131, allocations: 131.7 kB / 401.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.829e-05/0.1131, allocations: 20 kB / 401.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.243e-05/0.1132, allocations: 16 kB / 401.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.609e-05/0.1133, allocations: 79.8 kB / 401.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.961e-05/0.1134, allocations: 73.58 kB / 401.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.1135, allocations: 116 kB / 401.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.1135, allocations: 0 / 401.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1135, allocations: 4 kB / 401.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1135, allocations: 4 kB / 401.9 MB, free: 12.76 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001051/0.1146, allocations: 0.5808 MB / 402.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.1146, allocations: 15.97 kB / 402.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.1148, allocations: 27.89 kB / 402.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.1149, allocations: 179 kB / 402.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.011e-05/0.115, allocations: 23.97 kB / 402.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.415e-05/0.1151, allocations: 39.97 kB / 402.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008248/0.1159, allocations: 0.5476 MB / 403.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1159, allocations: 4 kB / 403.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.921e-05/0.116, allocations: 11.97 kB / 403.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.116, allocations: 4 kB / 403.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.1163, allocations: 139.9 kB / 403.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007816/0.1171, allocations: 496.2 kB / 403.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005623/0.1177, allocations: 486.4 kB / 404.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.1177, allocations: 0 / 404.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.1187, allocations: 0.7291 MB / 405.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.844e-06/0.1188, allocations: 0 / 405.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001392/0.1202, allocations: 0.9848 MB / 406.1 MB, free: 8.348 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/0.1202, allocations: 63.41 kB / 406.2 MB, free: 8.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.1203, allocations: 140.5 kB / 406.3 MB, free: 8.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.118e-05/0.1204, allocations: 49.69 kB / 406.3 MB, free: 8.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.95e-05/0.1205, allocations: 97.03 kB / 406.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.753e-05/0.1206, allocations: 111 kB / 406.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.122e-05/0.1206, allocations: 8 kB / 406.5 MB, free: 7.859 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1207, allocations: 330.8 kB / 406.9 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002303/0.121, allocations: 132.9 kB / 407 MB, free: 7.398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002759/0.1213, allocations: 208.8 kB / 407.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/0.1214, allocations: 64.89 kB / 407.3 MB, free: 7.098 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.1214, allocations: 4 kB / 407.3 MB, free: 7.094 MB / 302.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0005229/0.1219, allocations: 339.7 kB / 407.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.122, allocations: 4 kB / 407.6 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.122, allocations: 7.984 kB / 407.6 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.122, allocations: 4 kB / 407.6 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.1222, allocations: 31.86 kB / 407.7 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.1222, allocations: 7.938 kB / 407.7 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003156/0.1225, allocations: 71.97 kB / 407.7 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.698e-05/0.1226, allocations: 15.95 kB / 407.7 MB, free: 6.613 MB / 302.1 MB Warning: Assuming fixed start value for the following 7 variables: running:DISCRETE(start = runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean tValueInRangeWhileRunning:DISCRETE(start = 9.999999999999999e+59 unit = "s" fixed = true protected = true ) "time when the monitored signal comes back into the [valueMin ; valueMax] range and the tap-changer/phase-shifter is running" type: Real tValueAboveMaxWhileRunning:DISCRETE(start = 9.999999999999999e+59 unit = "s" fixed = true protected = true ) "time when the monitored signal went above the maximum limit and the tap-changer/phase-shifter is running" type: Real locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderMin:DISCRETE(start = false fixed = true protected = true ) "true if the monitored signal is under the minimum limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "true if the monitored signal is above the maximum limit" type: Boolean tValueUnderMinWhileRunning:DISCRETE(start = 9.999999999999999e+59 unit = "s" fixed = true protected = true ) "time when the monitored signal went under the minimum limit and the tap-changer/phase-shifter is running" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 52 (locked,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition29,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$PRE.state,state,$PRE.locked,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.valueUnderMin,$PRE.valueAboveMax,valueInRange,$PRE.tValueUnderMinWhileRunning,tValueUnderMinWhileRunning,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,$PRE.tValueInRangeWhileRunning,tValueInRangeWhileRunning,$PRE.running,valueUnderMin,valueAboveMax,running) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002583/0.1228, allocations: 192.4 kB / 407.9 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.025e-05/0.1229, allocations: 35.8 kB / 408 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001126/0.1241, allocations: 0.8247 MB / 408.8 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1241, allocations: 4 kB / 408.8 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.1241, allocations: 0 / 408.8 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1241, allocations: 4 kB / 408.8 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003503/0.1244, allocations: 337 kB / 409.1 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1245, allocations: 4 kB / 409.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.336e-05/0.1245, allocations: 11.94 kB / 409.1 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.1245, allocations: 4 kB / 409.1 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.886e-05/0.1246, allocations: 35.92 kB / 409.2 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.1246, allocations: 4 kB / 409.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1246, allocations: 0 / 409.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.1264, allocations: 1.643 MB / 410.8 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001929/0.1266, allocations: 148.8 kB / 411 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.1267, allocations: 35.94 kB / 411 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.1271, allocations: 71.92 kB / 411.1 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002913/0.1274, allocations: 163.6 kB / 411.2 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.189e-05/0.1275, allocations: 63.88 kB / 411.3 MB, free: 2.914 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.765e-05/0.1275, allocations: 105.1 kB / 411.4 MB, free: 2.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1275, allocations: 0 / 411.4 MB, free: 2.812 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004655/0.128, allocations: 112 kB / 411.5 MB, free: 2.703 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 41 ($whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition29,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderMin,valueAboveMax,valueInRange,tValueUnderMinWhileRunning,tValueAboveMaxWhileRunning,tValueInRangeWhileRunning) * Number of discrete states: 9 (tValueInRangeWhileRunning,tValueAboveMaxWhileRunning,tValueUnderMinWhileRunning,tap,valueUnderMin,valueAboveMax,locked,state,tTapMoved) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001852/0.1282, allocations: 147.1 kB / 411.7 MB, free: 2.551 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006474/0.1289, allocations: 457.9 kB / 412.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1289, allocations: 0 / 412.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.13, allocations: 1.351 MB / 413.5 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.1302, allocations: 43.83 kB / 413.5 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.1318, allocations: 0.7599 MB / 414.3 MB, free: 15.9 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.1321, allocations: 0.739 MB / 415 MB, free: 15.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001452/0.1323, allocations: 38.28 kB / 415 MB, free: 15.1 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.1324, allocations: 55.38 kB / 415.1 MB, free: 15.05 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1325, allocations: 0 / 415.1 MB, free: 15.05 MB / 318.1 MB Notification: Performance of Templates: time 0.009037/0.1415, allocations: 4.312 MB / 419.4 MB, free: 10.76 MB / 318.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.makefile Environment - environmentSimulation: (rm -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.sim & ./PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe 2>&1) Environment - environmentSimulation: