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/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_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_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.001149/0.001149, allocations: 99.08 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.692/1.692, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06332/0.06332, allocations: 14.15 MB / 284.5 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.0005115/0.000512, allocations: 19.94 kB / 347.6 MB, free: 18.48 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09871/0.09923, allocations: 51.11 MB / 398.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001403/0.1007, allocations: 1.145 MB / 399.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008627/0.1016, allocations: 0.5118 MB / 400.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.171e-05/0.1016, allocations: 0 / 400.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.609e-05/0.1016, allocations: 0 / 400.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.031e-05/0.1017, allocations: 23.89 kB / 400.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001711/0.1019, allocations: 59.88 kB / 400.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001175/0.102, allocations: 103.8 kB / 400.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.294e-05/0.1021, allocations: 8 kB / 400.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.1022, allocations: 99.78 kB / 400.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.1023, allocations: 91.72 kB / 400.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.362e-05/0.1024, allocations: 15.94 kB / 400.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.957e-05/0.1024, allocations: 16 kB / 400.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.377e-05/0.1025, allocations: 51.91 kB / 400.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.172e-05/0.1025, allocations: 53.64 kB / 400.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.594e-05/0.1026, allocations: 88.05 kB / 400.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.1026, allocations: 3.938 kB / 400.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1027, allocations: 0 / 400.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.1027, allocations: 0 / 400.9 MB, free: 13.04 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.0007968/0.1035, allocations: 491 kB / 401.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.1035, allocations: 16.02 kB / 401.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.836e-05/0.1036, allocations: 46.55 kB / 401.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.208e-05/0.1037, allocations: 23.89 kB / 401.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/0.1038, allocations: 178.9 kB / 401.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.1039, allocations: 15.98 kB / 401.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.959e-05/0.1039, allocations: 23.98 kB / 401.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005372/0.1045, allocations: 377.1 kB / 402.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.1045, allocations: 3.984 kB / 402.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.649e-05/0.1045, allocations: 7.984 kB / 402.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.1046, allocations: 4 kB / 402.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.1047, allocations: 67.88 kB / 402.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003717/0.1051, allocations: 372.6 kB / 402.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.1053, allocations: 174.5 kB / 402.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.065e-06/0.1054, allocations: 0 / 402.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007266/0.1061, allocations: 0.5231 MB / 403.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.523e-06/0.1061, allocations: 0 / 403.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008623/0.107, allocations: 0.6457 MB / 403.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.107, allocations: 59.41 kB / 403.9 MB, free: 9.859 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.629e-05/0.1071, allocations: 133.4 kB / 404.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.674e-05/0.1072, allocations: 45.69 kB / 404.1 MB, free: 9.672 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.003e-05/0.1072, allocations: 92.7 kB / 404.2 MB, free: 9.578 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.428e-05/0.1073, allocations: 83.14 kB / 404.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.314e-05/0.1073, allocations: 4 kB / 404.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.817e-05/0.1074, allocations: 334.7 kB / 404.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.1076, allocations: 84.3 kB / 404.7 MB, free: 9.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.1077, allocations: 147.4 kB / 404.8 MB, free: 8.902 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.988e-05/0.1078, allocations: 60.34 kB / 404.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1078, allocations: 0 / 404.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003269/0.1082, allocations: 233.4 kB / 405.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.1082, allocations: 11.98 kB / 405.1 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1082, allocations: 128 / 405.1 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.1082, allocations: 8 kB / 405.1 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.86e-05/0.1083, allocations: 15.88 kB / 405.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.036e-06/0.1083, allocations: 4 kB / 405.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.1086, allocations: 51.86 kB / 405.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.1086, allocations: 8 kB / 405.2 MB, free: 8.512 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.0001759/0.1088, allocations: 165.6 kB / 405.4 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.223e-05/0.1088, allocations: 31.8 kB / 405.4 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.588e-05/0.1089, allocations: 29.62 kB / 405.4 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.1089, allocations: 4 kB / 405.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1089, allocations: 0 / 405.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.1089, allocations: 0 / 405.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002286/0.1092, allocations: 277.4 kB / 405.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1092, allocations: 7.984 kB / 405.7 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.493e-05/0.1092, allocations: 7.938 kB / 405.7 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1092, allocations: 0 / 405.7 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/0.1093, allocations: 31.95 kB / 405.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1093, allocations: 0 / 405.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1093, allocations: 0 / 405.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006532/0.1099, allocations: 0.5592 MB / 406.3 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/0.1101, allocations: 116.9 kB / 406.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.442e-05/0.1101, allocations: 23.97 kB / 406.5 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.1104, allocations: 55.88 kB / 406.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.1106, allocations: 107.7 kB / 406.6 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.537e-05/0.1106, allocations: 39.95 kB / 406.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.31e-05/0.1107, allocations: 99.27 kB / 406.7 MB, free: 6.879 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1107, allocations: 0 / 406.7 MB, free: 6.879 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002833/0.111, allocations: 75.98 kB / 406.8 MB, free: 6.805 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.0009391/0.1119, allocations: 1.135 MB / 408 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004306/0.1124, allocations: 299.8 kB / 408.2 MB, free: 5.352 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1124, allocations: 0 / 408.2 MB, free: 5.352 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005886/0.113, allocations: 0.7263 MB / 409 MB, free: 4.625 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.1132, allocations: 32.22 kB / 409 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.1152, allocations: 1.777 MB / 410.8 MB, free: 2.746 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002257/0.1155, allocations: 0.7141 MB / 411.5 MB, free: 2.008 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.1156, allocations: 37.92 kB / 411.5 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.1158, allocations: 59.39 kB / 411.6 MB, free: 1.914 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1158, allocations: 0 / 411.6 MB, free: 1.914 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01498/0.1308, allocations: 4.348 MB / 415.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001785/0.131, allocations: 181.1 kB / 416.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.697/1.828, allocations: 0 / 416.1 MB, free: 13.41 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) Environment - environmentSimulation: