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.0008367/0.0008368, allocations: 88.17 kB / 15.71 MB, free: 452 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.001124/0.001124, allocations: 176.1 kB / 16.59 MB, free: 6.855 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.912/1.912, allocations: 205.4 MB / 222.8 MB, free: 5.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06142/0.06142, allocations: 14.17 MB / 285.2 MB, free: 7.098 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.0005624/0.0005625, allocations: 20 kB / 348.3 MB, free: 18.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1157, allocations: 51.11 MB / 399.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001812/0.1176, allocations: 1.135 MB / 400.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.1187, allocations: 0.5196 MB / 401 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.2e-05/0.1188, allocations: 4 kB / 401 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.414e-05/0.1189, allocations: 3.938 kB / 401 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.119, allocations: 11.92 kB / 401 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.1193, allocations: 59.88 kB / 401.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002209/0.1195, allocations: 167.6 kB / 401.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.619e-05/0.1196, allocations: 7.984 kB / 401.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.1198, allocations: 95.78 kB / 401.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.1199, allocations: 87.73 kB / 401.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.986e-05/0.12, allocations: 12 kB / 401.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.452e-05/0.12, allocations: 12 kB / 401.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.535e-05/0.1201, allocations: 51.91 kB / 401.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.622e-05/0.1202, allocations: 61.62 kB / 401.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.1203, allocations: 84.06 kB / 401.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1203, allocations: 0 / 401.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1203, allocations: 4 kB / 401.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.1204, allocations: 3.938 kB / 401.7 MB, free: 12.95 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.0009388/0.1213, allocations: 491 kB / 402.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.1213, allocations: 12.02 kB / 402.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001094/0.1215, allocations: 50.53 kB / 402.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.945e-05/0.1216, allocations: 23.89 kB / 402.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001804/0.1218, allocations: 174.9 kB / 402.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.802e-05/0.1218, allocations: 15.97 kB / 402.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.019e-05/0.1219, allocations: 27.98 kB / 402.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/0.1225, allocations: 373.1 kB / 402.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.1225, allocations: 4 kB / 402.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.751e-05/0.1226, allocations: 7.984 kB / 402.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.1226, allocations: 0 / 402.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.1228, allocations: 71.88 kB / 402.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004719/0.1233, allocations: 368.6 kB / 403.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.1236, allocations: 170.5 kB / 403.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002383/0.1238, allocations: 164.7 kB / 403.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.1238, allocations: 4 kB / 403.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008579/0.1247, allocations: 0.5231 MB / 404.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.914e-06/0.1247, allocations: 0 / 404.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001038/0.1258, allocations: 0.6496 MB / 404.8 MB, free: 9.676 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.1258, allocations: 59.41 kB / 404.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.126, allocations: 133.2 kB / 405 MB, free: 9.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.37e-05/0.126, allocations: 49.69 kB / 405 MB, free: 9.414 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.1261, allocations: 88.7 kB / 405.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.821e-05/0.1262, allocations: 75.2 kB / 405.2 MB, free: 9.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.43e-05/0.1262, allocations: 4 kB / 405.2 MB, free: 9.246 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1264, allocations: 334.7 kB / 405.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.1266, allocations: 84.3 kB / 405.6 MB, free: 8.824 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.1268, allocations: 159.4 kB / 405.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.1269, allocations: 48.36 kB / 405.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.1269, allocations: 4 kB / 405.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003876/0.1273, allocations: 241.4 kB / 406 MB, free: 8.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.1273, allocations: 7.938 kB / 406 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.1273, allocations: 4 kB / 406 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.1274, allocations: 0 / 406 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.99e-05/0.1275, allocations: 23.92 kB / 406.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.1275, allocations: 3.984 kB / 406.1 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.1277, allocations: 52 kB / 406.1 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/0.1277, allocations: 12 kB / 406.1 MB, free: 8.25 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.0002363/0.128, allocations: 154.6 kB / 406.3 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.53e-05/0.128, allocations: 27.8 kB / 406.3 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.431e-05/0.1282, allocations: 37.62 kB / 406.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1282, allocations: 4 kB / 406.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.1282, allocations: 0 / 406.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.1282, allocations: 3.984 kB / 406.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003201/0.1285, allocations: 273.4 kB / 406.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.1285, allocations: 3.938 kB / 406.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.783e-05/0.1286, allocations: 11.94 kB / 406.6 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1286, allocations: 0 / 406.6 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.232e-05/0.1286, allocations: 23.95 kB / 406.6 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.1287, allocations: 4 kB / 406.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1287, allocations: 0 / 406.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.1299, allocations: 1.28 MB / 407.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001635/0.1301, allocations: 116.8 kB / 408 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.797e-05/0.1302, allocations: 23.97 kB / 408.1 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.1304, allocations: 51.94 kB / 408.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000216/0.1306, allocations: 107.7 kB / 408.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.199e-05/0.1307, allocations: 47.91 kB / 408.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.294e-05/0.1307, allocations: 95.27 kB / 408.4 MB, free: 5.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1307, allocations: 0 / 408.4 MB, free: 5.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004295/0.1312, allocations: 79.97 kB / 408.4 MB, free: 5.789 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.001159/0.1323, allocations: 1.143 MB / 409.6 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004909/0.1328, allocations: 291.7 kB / 409.9 MB, free: 4.336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1329, allocations: 0 / 409.9 MB, free: 4.336 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006649/0.1335, allocations: 0.7263 MB / 410.6 MB, free: 3.609 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.1339, allocations: 39.95 kB / 410.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.136, allocations: 1.36 MB / 412 MB, free: 2.133 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.1364, allocations: 0.7257 MB / 412.7 MB, free: 1.383 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001249/0.1365, allocations: 33.94 kB / 412.8 MB, free: 1.352 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.1367, allocations: 59.39 kB / 412.8 MB, free: 1.293 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1367, allocations: 3.938 kB / 412.8 MB, free: 1.289 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01795/0.1547, allocations: 4.39 MB / 417.2 MB, free: 12.98 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002293/0.1549, allocations: 190.1 kB / 417.4 MB, free: 12.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.024, allocations: 0 / 417.4 MB, free: 12.75 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: