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: "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 96.27 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.001462/0.001462, allocations: 179.7 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.804/1.804, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05742/0.05742, allocations: 14.16 MB / 285.2 MB, free: 7.145 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.0005645/0.0005645, allocations: 15.94 kB / 348.2 MB, free: 18.46 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1302, allocations: 51.11 MB / 399.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001728/0.132, allocations: 1.137 MB / 400.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.1331, allocations: 0.5197 MB / 401 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.993e-05/0.1331, allocations: 0 / 401 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.004e-05/0.1332, allocations: 0 / 401 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.376e-05/0.1333, allocations: 19.91 kB / 401 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002155/0.1335, allocations: 67.86 kB / 401.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.1336, allocations: 99.84 kB / 401.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.687e-05/0.1337, allocations: 7.984 kB / 401.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.1338, allocations: 99.78 kB / 401.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.134, allocations: 95.66 kB / 401.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.9e-05/0.134, allocations: 12 kB / 401.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.634e-05/0.1341, allocations: 16 kB / 401.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.927e-05/0.1341, allocations: 51.91 kB / 401.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.655e-05/0.1342, allocations: 53.64 kB / 401.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.1343, allocations: 92.05 kB / 401.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1344, allocations: 0 / 401.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1344, allocations: 0 / 401.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.1344, allocations: 0 / 401.6 MB, free: 13.03 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.0008359/0.1352, allocations: 487 kB / 402.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.1353, allocations: 16.02 kB / 402.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.824e-05/0.1353, allocations: 46.53 kB / 402.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.461e-05/0.1354, allocations: 19.91 kB / 402.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.1356, allocations: 186.8 kB / 402.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.1356, allocations: 15.98 kB / 402.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.843e-05/0.1357, allocations: 23.97 kB / 402.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005511/0.1362, allocations: 377 kB / 402.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.1362, allocations: 0 / 402.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.944e-05/0.1363, allocations: 15.98 kB / 402.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.1363, allocations: 4 kB / 402.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.1365, allocations: 63.88 kB / 402.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004873/0.137, allocations: 368.6 kB / 403.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.1373, allocations: 170.5 kB / 403.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.1373, allocations: 4 kB / 403.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009099/0.1382, allocations: 0.5192 MB / 403.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 3.607e-06/0.1382, allocations: 3.984 kB / 403.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.00107/0.1393, allocations: 0.6457 MB / 404.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/0.1394, allocations: 59.41 kB / 404.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.1395, allocations: 141.2 kB / 404.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.624e-05/0.1396, allocations: 45.69 kB / 404.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.503e-05/0.1396, allocations: 84.7 kB / 404.8 MB, free: 9.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.698e-05/0.1397, allocations: 79.16 kB / 404.9 MB, free: 9.488 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.402e-05/0.1397, allocations: 4 kB / 404.9 MB, free: 9.484 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1399, allocations: 330.8 kB / 405.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.14, allocations: 88.3 kB / 405.3 MB, free: 9.062 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1402, allocations: 151.4 kB / 405.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.439e-05/0.1403, allocations: 52.33 kB / 405.5 MB, free: 8.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1403, allocations: 4 kB / 405.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003436/0.1407, allocations: 241.4 kB / 405.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.1407, allocations: 8 kB / 405.8 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.1407, allocations: 3.938 kB / 405.8 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.1407, allocations: 4 kB / 405.8 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.824e-05/0.1408, allocations: 15.94 kB / 405.8 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.1408, allocations: 7.984 kB / 405.8 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.141, allocations: 48 kB / 405.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.1411, allocations: 12 kB / 405.9 MB, free: 8.496 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.0001859/0.1413, allocations: 164.3 kB / 406 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.32e-05/0.1413, allocations: 31.8 kB / 406 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.422e-05/0.1414, allocations: 29.62 kB / 406.1 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1414, allocations: 4 kB / 406.1 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.1414, allocations: 4 kB / 406.1 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1414, allocations: 0 / 406.1 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/0.1416, allocations: 277.4 kB / 406.4 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1417, allocations: 4 kB / 406.4 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.481e-05/0.1417, allocations: 7.938 kB / 406.4 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1417, allocations: 0 / 406.4 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.051e-05/0.1417, allocations: 27.95 kB / 406.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1417, allocations: 0 / 406.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1417, allocations: 0 / 406.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.1429, allocations: 1.272 MB / 407.7 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001438/0.143, allocations: 120.8 kB / 407.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.765e-05/0.1431, allocations: 27.91 kB / 407.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.1434, allocations: 47.94 kB / 407.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.1436, allocations: 107.7 kB / 408 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.021e-05/0.1436, allocations: 47.95 kB / 408 MB, free: 6.207 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.426e-05/0.1437, allocations: 95.22 kB / 408.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1437, allocations: 0 / 408.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003894/0.1441, allocations: 79.98 kB / 408.2 MB, free: 6.035 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.0009667/0.1451, allocations: 1.135 MB / 409.3 MB, free: 4.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004497/0.1455, allocations: 287.8 kB / 409.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1455, allocations: 0 / 409.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005874/0.1461, allocations: 0.7302 MB / 410.3 MB, free: 3.863 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000247/0.1464, allocations: 31.97 kB / 410.4 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.1485, allocations: 1.948 MB / 412.3 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.1487, allocations: 0.7258 MB / 413 MB, free: 1.051 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000101/0.1488, allocations: 41.91 kB / 413.1 MB, free: 1.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.149, allocations: 59.39 kB / 413.1 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.149, allocations: 0 / 413.1 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01347/0.1624, allocations: 4.367 MB / 417.5 MB, free: 12.67 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000151/0.1626, allocations: 188.9 kB / 417.7 MB, free: 12.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/1.838, allocations: 0 / 417.7 MB, free: 12.43 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTapChangerLogicMax_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTapChangerLogicMax.fmu > PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) Environment - environmentSimulation: