Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001529/0.00153, allocations: 183.1 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.1 MB / 221.8 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000944/0.0009439, allocations: 89.95 kB / 269.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06099/0.06099, allocations: 14.18 MB / 330.7 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 51.92 kB / 393 MB, free: 63.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1072, allocations: 50.12 MB / 443.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.003294/0.1106, allocations: 1.508 MB / 444.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.1117, allocations: 0.5366 MB / 445.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.358e-05/0.1118, allocations: 0 / 445.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.843e-05/0.1118, allocations: 11.92 kB / 445.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001096/0.1119, allocations: 11.92 kB / 445.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.1122, allocations: 59.88 kB / 445.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002188/0.1124, allocations: 191.6 kB / 445.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.39e-05/0.1125, allocations: 4 kB / 445.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.1127, allocations: 95.78 kB / 445.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.1128, allocations: 91.72 kB / 445.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.1129, allocations: 12 kB / 445.6 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.662e-05/0.1129, allocations: 12 kB / 445.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.418e-05/0.113, allocations: 55.84 kB / 445.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.1132, allocations: 87.78 kB / 445.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000178/0.1133, allocations: 139.8 kB / 445.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1134, allocations: 0 / 445.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1134, allocations: 0 / 445.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.1134, allocations: 0 / 445.9 MB, free: 10.54 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.001193/0.1146, allocations: 0.5535 MB / 446.5 MB, free: 9.938 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.1146, allocations: 12.03 kB / 446.5 MB, free: 9.926 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.1148, allocations: 28.83 kB / 446.5 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.1149, allocations: 172.3 kB / 446.7 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.1149, allocations: 12.36 kB / 446.7 MB, free: 9.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.731e-05/0.115, allocations: 24.36 kB / 446.7 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007523/0.1158, allocations: 385.3 kB / 447.1 MB, free: 9.273 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.1158, allocations: 0 / 447.1 MB, free: 9.273 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.777e-05/0.1159, allocations: 15.97 kB / 447.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.1159, allocations: 4 kB / 447.1 MB, free: 9.254 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002811/0.1162, allocations: 63.94 kB / 447.2 MB, free: 9.191 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005536/0.1168, allocations: 368.6 kB / 447.5 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003721/0.1172, allocations: 178.5 kB / 447.7 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003254/0.1175, allocations: 160.8 kB / 447.9 MB, free: 8.438 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.1175, allocations: 0 / 447.9 MB, free: 8.438 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00103/0.1186, allocations: 0.5274 MB / 448.4 MB, free: 7.898 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.064e-06/0.1186, allocations: 0 / 448.4 MB, free: 7.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=30): time 0.001279/0.1199, allocations: 0.6458 MB / 449 MB, free: 7.246 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.1199, allocations: 63.39 kB / 449.1 MB, free: 7.172 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.12, allocations: 125.7 kB / 449.2 MB, free: 7.039 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.083e-05/0.1201, allocations: 41.7 kB / 449.3 MB, free: 6.992 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.198e-05/0.1202, allocations: 100.7 kB / 449.4 MB, free: 6.891 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.749e-05/0.1202, allocations: 71.22 kB / 449.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.1204, allocations: 57.7 kB / 449.5 MB, free: 6.758 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.43e-05/0.1205, allocations: 330.8 kB / 449.8 MB, free: 6.426 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.1207, allocations: 92.23 kB / 449.9 MB, free: 6.336 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.1209, allocations: 155.4 kB / 450.1 MB, free: 6.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004498/0.1214, allocations: 237.7 kB / 450.3 MB, free: 5.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1214, allocations: 0 / 450.3 MB, free: 5.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004844/0.1219, allocations: 249.1 kB / 450.5 MB, free: 5.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.1219, allocations: 7.938 kB / 450.5 MB, free: 5.652 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1219, allocations: 4 kB / 450.5 MB, free: 5.648 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.122, allocations: 4 kB / 450.6 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.1221, allocations: 23.86 kB / 450.6 MB, free: 5.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.1221, allocations: 0 / 450.6 MB, free: 5.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003038/0.1224, allocations: 35.97 kB / 450.6 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.1225, allocations: 8 kB / 450.6 MB, free: 5.578 MB / 298.7 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderStop:DISCRETE(start = false fixed = true protected = true ) "whether the monitored signal is under the stop limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean running:DISCRETE(start = runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 39 ($PRE.locked,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.running,tValueAboveMaxWhileRunning,$PRE.tValueAboveMaxWhileRunning,tTapMoved,$PRE.tTapMoved,lookingToDecreaseTap,lookingToIncreaseTap,tap,$PRE.tap,state,$PRE.state,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition21,$whenCondition20,$whenCondition19,valueAboveMax,valueUnderStop,locked,running) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002104/0.1227, allocations: 165.5 kB / 450.8 MB, free: 5.406 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.1228, allocations: 31.8 kB / 450.8 MB, free: 5.375 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.714e-05/0.1229, allocations: 25.62 kB / 450.8 MB, free: 5.352 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1229, allocations: 4 kB / 450.8 MB, free: 5.348 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.1229, allocations: 0 / 450.8 MB, free: 5.348 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.1229, allocations: 3.984 kB / 450.8 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002605/0.1232, allocations: 281.4 kB / 451.1 MB, free: 5.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1232, allocations: 0 / 451.1 MB, free: 5.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.903e-05/0.1233, allocations: 7.938 kB / 451.1 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.1233, allocations: 4 kB / 451.1 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-05/0.1233, allocations: 27.95 kB / 451.2 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.1234, allocations: 3.984 kB / 451.2 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1234, allocations: 0 / 451.2 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.1248, allocations: 1.272 MB / 452.4 MB, free: 3.645 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.125, allocations: 116.8 kB / 452.5 MB, free: 3.512 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.1251, allocations: 23.97 kB / 452.6 MB, free: 3.488 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003145/0.1255, allocations: 43.94 kB / 452.6 MB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002639/0.1257, allocations: 87.77 kB / 452.7 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.999e-05/0.1258, allocations: 39.95 kB / 452.7 MB, free: 3.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.969e-05/0.1259, allocations: 95.27 kB / 452.8 MB, free: 3.227 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1259, allocations: 0 / 452.8 MB, free: 3.227 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006552/0.1266, allocations: 87.97 kB / 452.9 MB, free: 3.141 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderStop,valueAboveMax,tValueAboveMaxWhileRunning) * Number of discrete states: 6 (valueAboveMax,tap,locked,state,valueUnderStop,tTapMoved) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001696/0.1267, allocations: 133.4 kB / 453 MB, free: 3.004 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006322/0.1274, allocations: 300.9 kB / 453.3 MB, free: 2.711 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1274, allocations: 0 / 453.3 MB, free: 2.711 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007124/0.1281, allocations: 0.7263 MB / 454.1 MB, free: 1.984 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004657/0.1286, allocations: 55.95 kB / 454.1 MB, free: 1.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.13, allocations: 0.6364 MB / 454.8 MB, free: 1.254 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.1302, allocations: 0.7257 MB / 455.5 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001551/0.1303, allocations: 25.95 kB / 455.5 MB, free: 492 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.1305, allocations: 43.39 kB / 455.6 MB, free: 448 kB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.1305, allocations: 0 / 455.6 MB, free: 448 kB / 298.7 MB Notification: Performance of Templates: time 0.01/0.1405, allocations: 3.589 MB / 459.1 MB, free: 12.86 MB / 314.7 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1)