Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.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.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009708/0.0009709, allocations: 96.27 kB / 15.7 MB, free: 472 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.0009491/0.000949, allocations: 180.4 kB / 16.58 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.505/1.505, allocations: 205.4 MB / 222.7 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06255/0.06255, allocations: 14.16 MB / 285.2 MB, free: 7.152 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.0005535/0.0005537, allocations: 19.98 kB / 348.1 MB, free: 18.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1135, allocations: 51.11 MB / 399.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.00188/0.1154, allocations: 1.141 MB / 400.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.1166, allocations: 0.5119 MB / 400.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.858e-05/0.1167, allocations: 3.938 kB / 400.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.602e-05/0.1167, allocations: 0 / 400.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.1169, allocations: 27.89 kB / 400.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002253/0.1171, allocations: 59.88 kB / 401 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001702/0.1173, allocations: 103.8 kB / 401.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.286e-05/0.1174, allocations: 4 kB / 401.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001798/0.1176, allocations: 103.8 kB / 401.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.1177, allocations: 87.72 kB / 401.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.05e-05/0.1178, allocations: 15.98 kB / 401.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.534e-05/0.1178, allocations: 15.94 kB / 401.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.206e-05/0.1179, allocations: 51.92 kB / 401.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.856e-05/0.118, allocations: 53.64 kB / 401.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.1181, allocations: 92.09 kB / 401.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1181, allocations: 0 / 401.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1181, allocations: 0 / 401.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1181, allocations: 0 / 401.5 MB, free: 13.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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.001028/0.1192, allocations: 490.9 kB / 402 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1192, allocations: 12.02 kB / 402 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.1194, allocations: 19.91 kB / 402 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.1195, allocations: 178.9 kB / 402.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.873e-05/0.1196, allocations: 15.92 kB / 402.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.717e-05/0.1197, allocations: 31.97 kB / 402.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006556/0.1204, allocations: 373 kB / 402.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1204, allocations: 7.984 kB / 402.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.935e-05/0.1204, allocations: 7.984 kB / 402.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.1205, allocations: 4 kB / 402.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.1206, allocations: 67.94 kB / 402.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004797/0.1211, allocations: 368.6 kB / 403 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/0.1214, allocations: 174.5 kB / 403.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.1214, allocations: 0 / 403.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007795/0.1222, allocations: 0.5192 MB / 403.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.493e-06/0.1222, allocations: 0 / 403.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009629/0.1232, allocations: 0.6458 MB / 404.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.1232, allocations: 59.41 kB / 404.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.1234, allocations: 141.2 kB / 404.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.044e-05/0.1234, allocations: 45.69 kB / 404.6 MB, free: 9.824 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.206e-05/0.1235, allocations: 92.7 kB / 404.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.913e-05/0.1236, allocations: 75.2 kB / 404.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.84e-05/0.1236, allocations: 11.94 kB / 404.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1237, allocations: 330.8 kB / 405.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.1239, allocations: 80.3 kB / 405.2 MB, free: 9.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002012/0.1241, allocations: 159.4 kB / 405.3 MB, free: 9.051 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.117e-05/0.1242, allocations: 44.42 kB / 405.4 MB, free: 9.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1242, allocations: 0 / 405.4 MB, free: 9.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003602/0.1246, allocations: 245.4 kB / 405.6 MB, free: 8.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1246, allocations: 8.031 kB / 405.6 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.1246, allocations: 4 kB / 405.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.1246, allocations: 4 kB / 405.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.1247, allocations: 23.92 kB / 405.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.1248, allocations: 0 / 405.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.125, allocations: 43.92 kB / 405.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.594e-05/0.125, allocations: 19.92 kB / 405.7 MB, free: 8.66 MB / 302.1 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 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$PRE.state,state,$PRE.locked,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,$PRE.running,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002115/0.1252, allocations: 165.5 kB / 405.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.354e-05/0.1253, allocations: 27.8 kB / 405.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.886e-05/0.1254, allocations: 33.62 kB / 405.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1254, allocations: 4 kB / 405.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.1254, allocations: 0 / 405.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.1254, allocations: 7.984 kB / 405.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002484/0.1257, allocations: 273.4 kB / 406.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1257, allocations: 0 / 406.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.428e-05/0.1257, allocations: 8 kB / 406.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.1257, allocations: 0 / 406.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.253e-05/0.1258, allocations: 23.95 kB / 406.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.1258, allocations: 7.938 kB / 406.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1258, allocations: 0 / 406.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.1271, allocations: 1.277 MB / 407.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.1272, allocations: 116.8 kB / 407.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.58e-05/0.1273, allocations: 23.97 kB / 407.7 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.1276, allocations: 47.94 kB / 407.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002205/0.1278, allocations: 107.7 kB / 407.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.121e-05/0.1278, allocations: 51.89 kB / 407.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.351e-05/0.1279, allocations: 95.27 kB / 408 MB, free: 6.273 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1279, allocations: 0 / 408 MB, free: 6.273 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003918/0.1283, allocations: 79.92 kB / 408 MB, free: 6.195 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: 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 (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.0001639/0.1285, allocations: 137.3 kB / 408.2 MB, free: 6.055 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004764/0.129, allocations: 291.8 kB / 408.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.129, allocations: 0 / 408.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006289/0.1296, allocations: 0.7305 MB / 409.2 MB, free: 5.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002316/0.1299, allocations: 31.97 kB / 409.2 MB, free: 5.008 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.1309, allocations: 0.6259 MB / 409.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.1312, allocations: 0.7219 MB / 410.6 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.1313, allocations: 33.94 kB / 410.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.1314, allocations: 39.39 kB / 410.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1314, allocations: 4 kB / 410.6 MB, free: 3.523 MB / 302.1 MB Notification: Performance of Templates: time 0.006252/0.1377, allocations: 3.089 MB / 413.7 MB, free: 456 kB / 302.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile Environment - environmentSimulation: (rm -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) Environment - environmentSimulation: